Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
295 B
1
Indexable
Never
//in fromJson 
 String profileImage = decompress(json['photo']['data']['data']);
 
create the responding method

 String decodImage (String img) {
	Uint8List _decodedImage = Base64Decoder().convert(img);
   return String.fromCharCodes(_decodedImage);
  } else {
   return "";
  }

 }