toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
'\$hash': '9e84bc99',
'\$name': 'UpdateReadHistoryInbox',
'flags': flags,
'folderId': folderId,
'peer': peer,
'topMsgId': topMsgId,
'maxId': maxId,
'stillUnreadCount': stillUnreadCount,
'pts': pts,
'ptsCount': ptsCount,
};
// Finished toJson.
return returnValue;
}