fromMap static method
override
Construct from Map.
Implementation
static BotCommandScope? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'botCommandScopeChatAdministrators':
return BotCommandScopeChatAdministrators.fromMap(_map);
case 'botCommandScopeAllChatAdministrators':
return BotCommandScopeAllChatAdministrators.fromMap(_map);
case 'botCommandScopeAllPrivateChats':
return BotCommandScopeAllPrivateChats.fromMap(_map);
case 'botCommandScopeAllGroupChats':
return BotCommandScopeAllGroupChats.fromMap(_map);
case 'botCommandScopeChatMember':
return BotCommandScopeChatMember.fromMap(_map);
case 'botCommandScopeDefault':
return BotCommandScopeDefault.fromMap(_map);
case 'botCommandScopeChat':
return BotCommandScopeChat.fromMap(_map);
case null:
default:
return null;
}
}