toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'chatAdministratorRights',
if (extra != null) '@extra': extra,
'can_manage_chat': can_manage_chat,
'can_change_info': can_change_info,
'can_post_messages': can_post_messages,
'can_edit_messages': can_edit_messages,
'can_delete_messages': can_delete_messages,
'can_invite_users': can_invite_users,
'can_restrict_members': can_restrict_members,
'can_pin_messages': can_pin_messages,
'can_manage_topics': can_manage_topics,
'can_promote_members': can_promote_members,
'can_manage_video_chats': can_manage_video_chats,
'can_post_stories': can_post_stories,
'can_edit_stories': can_edit_stories,
'can_delete_stories': can_delete_stories,
'is_anonymous': is_anonymous
};
}