AttachmentMenuBot.fromMap constructor
AttachmentMenuBot.fromMap(
- Map<String, dynamic> map
)
Implementation
AttachmentMenuBot.fromMap(Map<String, dynamic> map) {
extra = map['@extra'];
client_id = map['@client_id'];
bot_user_id = map['bot_user_id'];
supports_self_chat = map['supports_self_chat'];
supports_user_chats = map['supports_user_chats'];
supports_bot_chats = map['supports_bot_chats'];
supports_group_chats = map['supports_group_chats'];
supports_channel_chats = map['supports_channel_chats'];
supports_settings = map['supports_settings'];
request_write_access = map['request_write_access'];
name = map['name'];
if (map['name_color'] != null) {
name_color = TdApiMap.fromMap(map['name_color']) as AttachmentMenuBotColor;
}
if (map['default_icon'] != null) {
default_icon = TdApiMap.fromMap(map['default_icon']) as File;
}
if (map['ios_static_icon'] != null) {
ios_static_icon = TdApiMap.fromMap(map['ios_static_icon']) as File;
}
if (map['ios_animated_icon'] != null) {
ios_animated_icon = TdApiMap.fromMap(map['ios_animated_icon']) as File;
}
if (map['android_icon'] != null) {
android_icon = TdApiMap.fromMap(map['android_icon']) as File;
}
if (map['macos_icon'] != null) {
macos_icon = TdApiMap.fromMap(map['macos_icon']) as File;
}
if (map['icon_color'] != null) {
icon_color = TdApiMap.fromMap(map['icon_color']) as AttachmentMenuBotColor;
}
if (map['web_app_placeholder'] != null) {
web_app_placeholder = TdApiMap.fromMap(map['web_app_placeholder']) as File;
}
}