fromMap static method
override
Construct from Map.
Implementation
static BasicGroup? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
if (_ != CONSTRUCTOR) return null;
var extra = _map['@extra'];
var clientId = _map['@clientId'];
var id = _map['id']! as int;
var member_count = _map['member_count']! as int;
var status = ChatMemberStatus.fromMap(_map['status'])!;
var is_active = _map['is_active']! as bool;
var upgraded_to_supergroup_id = _map['upgraded_to_supergroup_id']! as int;
return BasicGroup(
extra: extra,
clientId: clientId,
id: id,
member_count: member_count,
status: status,
is_active: is_active,
upgraded_to_supergroup_id: upgraded_to_supergroup_id,
);
}