decode static method

ImageFile decode(
  1. dynamic data
)

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'],
  );
}