toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
'\$hash': 'c9f06e1b',
'\$name': 'RequestPeerTypeChat',
'flags': flags,
'creator': creator,
'botParticipant': botParticipant,
'hasUsername': hasUsername,
'forum': forum,
'userAdminRights': userAdminRights,
'botAdminRights': botAdminRights,
};
// Finished toJson.
return returnValue;
}