toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'targetChatChosen',
if (extra != null) '@extra': extra,
'allow_user_chats': allow_user_chats,
'allow_bot_chats': allow_bot_chats,
'allow_group_chats': allow_group_chats,
'allow_channel_chats': allow_channel_chats
};
}