fromMap static method

ChatInviteLinkMember? fromMap(
  1. Map<String, dynamic>? _map
)
override

Construct from Map.

Implementation

static ChatInviteLinkMember? 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 user_id = _map['user_id']! as int;
  var joined_chat_date = _map['joined_chat_date']! as int;
  var via_chat_folder_invite_link =
      _map['via_chat_folder_invite_link']! as bool;
  var approver_user_id = _map['approver_user_id']! as int;
  return ChatInviteLinkMember(
    extra: extra,
    clientId: clientId,
    user_id: user_id,
    joined_chat_date: joined_chat_date,
    via_chat_folder_invite_link: via_chat_folder_invite_link,
    approver_user_id: approver_user_id,
  );
}