fromMap static method
override
Construct from Map.
Implementation
static SupergroupMembersFilter? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'supergroupMembersFilterSearch':
return SupergroupMembersFilterSearch.fromMap(_map);
case 'supergroupMembersFilterMention':
return SupergroupMembersFilterMention.fromMap(_map);
case 'supergroupMembersFilterRestricted':
return SupergroupMembersFilterRestricted.fromMap(_map);
case 'supergroupMembersFilterBots':
return SupergroupMembersFilterBots.fromMap(_map);
case 'supergroupMembersFilterBanned':
return SupergroupMembersFilterBanned.fromMap(_map);
case 'supergroupMembersFilterContacts':
return SupergroupMembersFilterContacts.fromMap(_map);
case 'supergroupMembersFilterAdministrators':
return SupergroupMembersFilterAdministrators.fromMap(_map);
case 'supergroupMembersFilterRecent':
return SupergroupMembersFilterRecent.fromMap(_map);
case null:
default:
return null;
}
}