toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
"\$": "0x95fcd1d6",
"flags": flags,
"id": id,
"accessHash": accessHash,
"shortName": shortName,
"title": title,
"description": description,
"photo": photo,
"document": document,
"hash": hash,
};
// Finished toJson.
return returnValue;
}