toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
"\$": "0x313bc7f8",
"flags": flags,
"out": out,
"mentioned": mentioned,
"mediaUnread": mediaUnread,
"silent": silent,
"id": id,
"userId": userId,
"message": message,
"pts": pts,
"ptsCount": ptsCount,
"date": date.toIso8601String(),
"fwdFrom": fwdFrom,
"viaBotId": viaBotId,
"replyTo": replyTo,
"entities": entities,
"ttlPeriod": ttlPeriod,
};
// Finished toJson.
return returnValue;
}