toMap method
Implementation
Map<String, dynamic> toMap() {
final map = <String, dynamic>{};
map['filePath'] = filePath;
map['rawBytes'] = List<int>.from(rawBytes);
if (contentType != null) map['contentType'] = contentType;
if (width != null) map['width'] = width;
if (height != null) map['height'] = height;
return map;
}