toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
'\$hash': '973478b6',
'\$name': 'ContactsGetTopPeers',
'flags': flags,
'correspondents': correspondents,
'botsPm': botsPm,
'botsInline': botsInline,
'phoneCalls': phoneCalls,
'forwardUsers': forwardUsers,
'forwardChats': forwardChats,
'groups': groups,
'channels': channels,
'botsApp': botsApp,
'botsGuestchat': botsGuestchat,
'offset': offset,
'limit': limit,
'hash': hash,
};
// Finished toJson.
return returnValue;
}