fromMap static method

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

Construct from Map.

Implementation

static RequestQrCodeAuthentication? 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 other_user_ids = List<int>.from(
    (_map["other_user_ids"] ?? []).map(
      (e) => e as int,
    ),
  );
  return RequestQrCodeAuthentication(
    extra: extra,
    clientId: clientId,
    other_user_ids: other_user_ids,
  );
}