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