toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
'\$hash': '2064674e',
'\$name': 'UpdatesChannelDifference',
'flags': flags,
'ffinal': ffinal,
'pts': pts,
'timeout': timeout,
'newMessages': newMessages,
'otherUpdates': otherUpdates,
'chats': chats,
'users': users,
};
// Finished toJson.
return returnValue;
}