toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
'\$hash': 'f47741f7',
'\$name': 'PeerSettings',
'flags': flags,
'reportSpam': reportSpam,
'addContact': addContact,
'blockContact': blockContact,
'shareContact': shareContact,
'needContactsException': needContactsException,
'reportGeo': reportGeo,
'autoarchived': autoarchived,
'inviteMembers': inviteMembers,
'requestChatBroadcast': requestChatBroadcast,
'businessBotPaused': businessBotPaused,
'businessBotCanReply': businessBotCanReply,
'geoDistance': geoDistance,
'requestChatTitle': requestChatTitle,
'requestChatDate': requestChatDate?.toIso8601String(),
'businessBotId': businessBotId,
'businessBotManageUrl': businessBotManageUrl,
'chargePaidMessageStars': chargePaidMessageStars,
'registrationMonth': registrationMonth,
'phoneCountry': phoneCountry,
'nameChangeDate': nameChangeDate?.toIso8601String(),
'photoChangeDate': photoChangeDate?.toIso8601String(),
};
// Finished toJson.
return returnValue;
}