Supergroup.fromMap constructor

Supergroup.fromMap(
  1. Map<String, dynamic> map
)

Implementation

Supergroup.fromMap(Map<String, dynamic> map) {
  extra = map['@extra'];
  client_id = map['@client_id'];
  id = map['id'];
  if (map['usernames'] != null) {
    usernames = TdApiMap.fromMap(map['usernames']) as Usernames;
  }
  date = map['date'];
  if (map['status'] != null) {
    status = TdApiMap.fromMap(map['status']) as ChatMemberStatus;
  }
  member_count = map['member_count'];
  has_linked_chat = map['has_linked_chat'];
  has_location = map['has_location'];
  sign_messages = map['sign_messages'];
  join_to_send_messages = map['join_to_send_messages'];
  join_by_request = map['join_by_request'];
  is_slow_mode_enabled = map['is_slow_mode_enabled'];
  is_channel = map['is_channel'];
  is_broadcast_group = map['is_broadcast_group'];
  is_forum = map['is_forum'];
  is_verified = map['is_verified'];
  restriction_reason = map['restriction_reason'];
  is_scam = map['is_scam'];
  is_fake = map['is_fake'];
}