toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'version': version?.index,
'deliveryMode': deliveryMode?.index,
'resizeMode': resizeMode?.index,
'normalizedCropRect': normalizedCropRect == null
? null
: <String, double>{
'x': normalizedCropRect!.left,
'y': normalizedCropRect!.top,
'width': normalizedCropRect!.width,
'height': normalizedCropRect!.height,
},
'isNetworkAccessAllowed': isNetworkAccessAllowed,
'isSynchronous': isSynchronous,
};
}