toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
"\$": "0x021e1ad6",
"type": type,
"w": w,
"h": h,
"bytes": bytes,
};
// Finished toJson.
return returnValue;
}