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