toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
'\$hash': '313bc7f8',
'\$name': 'UpdateShortMessage',
'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;
}