decode static method
Implementation
static ImageFile decode(dynamic data) {
return ImageFile(
filePath: data['filePath'],
rawBytes: Uint8List.fromList(List<int>.from(data['rawBytes'])),
contentType: data['contentType'],
width: data['width'],
height: data['height'],
);
}