fromMap static method

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

Construct from Map.

Implementation

static InviteGroupCallParticipants? 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 group_call_id = _map['group_call_id']! as int;
  var user_ids = List<int>.from(
    (_map["user_ids"] ?? []).map(
      (e) => e as int,
    ),
  );
  return InviteGroupCallParticipants(
    extra: extra,
    clientId: clientId,
    group_call_id: group_call_id,
    user_ids: user_ids,
  );
}