toMap method
Converts this object to a map.
Implementation
Map<String, dynamic> toMap() {
return <String, dynamic>{
'width': size.width,
'height': size.height,
'format': format.index,
'quality': quality,
'frame': frame,
};
}