toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
"\$": "0xc661bbc4",
"flags": flags,
"silent": silent,
"background": background,
"withMyScore": withMyScore,
"dropAuthor": dropAuthor,
"dropMediaCaptions": dropMediaCaptions,
"noforwards": noforwards,
"fromPeer": fromPeer,
"id": id,
"randomId": randomId,
"toPeer": toPeer,
"topMsgId": topMsgId,
"scheduleDate": scheduleDate?.toIso8601String(),
"sendAs": sendAs,
};
// Finished toJson.
return returnValue;
}