toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
"\$": "0x5e1b3cb8",
"flags": flags,
"peer": peer,
"msgId": msgId,
"topMsgId": topMsgId,
"reactions": reactions,
};
// Finished toJson.
return returnValue;
}