fromMap static method
override
Construct from Map.
Implementation
static ChatMembersFilter? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'chatMembersFilterBots':
return ChatMembersFilterBots.fromMap(_map);
case 'chatMembersFilterMembers':
return ChatMembersFilterMembers.fromMap(_map);
case 'chatMembersFilterRestricted':
return ChatMembersFilterRestricted.fromMap(_map);
case 'chatMembersFilterBanned':
return ChatMembersFilterBanned.fromMap(_map);
case 'chatMembersFilterAdministrators':
return ChatMembersFilterAdministrators.fromMap(_map);
case 'chatMembersFilterContacts':
return ChatMembersFilterContacts.fromMap(_map);
case 'chatMembersFilterMention':
return ChatMembersFilterMention.fromMap(_map);
case null:
default:
return null;
}
}