toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'attachmentMenuBot',
if (extra != null) '@extra': extra,
'bot_user_id': bot_user_id,
'supports_self_chat': supports_self_chat,
'supports_user_chats': supports_user_chats,
'supports_bot_chats': supports_bot_chats,
'supports_group_chats': supports_group_chats,
'supports_channel_chats': supports_channel_chats,
'supports_settings': supports_settings,
'request_write_access': request_write_access,
'is_added': is_added,
'show_in_attachment_menu': show_in_attachment_menu,
'show_in_side_menu': show_in_side_menu,
'show_disclaimer_in_side_menu': show_disclaimer_in_side_menu,
'name': name,
'name_color': name_color,
'default_icon': default_icon,
'ios_static_icon': ios_static_icon,
'ios_animated_icon': ios_animated_icon,
'ios_side_menu_icon': ios_side_menu_icon,
'android_icon': android_icon,
'android_side_menu_icon': android_side_menu_icon,
'macos_icon': macos_icon,
'macos_side_menu_icon': macos_side_menu_icon,
'icon_color': icon_color,
'web_app_placeholder': web_app_placeholder
};
}