toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts an object to JSON.

Implementation

@override
Map<String, dynamic> toJson() {
  final returnValue = <String, dynamic>{
    "\$": "0x88bf9319",
    "flags": flags,
    "id": id,
    "type": type,
    "title": title,
    "description": description,
    "url": url,
    "thumb": thumb,
    "content": content,
    "sendMessage": sendMessage,
  };

  // Finished toJson.
  return returnValue;
}