fromMap static method

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

Construct from Map.

Implementation

static GetPassportAuthorizationFormAvailableElements? 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 authorization_form_id = _map['authorization_form_id']! as int;
  var password = _map['password']! as String;
  return GetPassportAuthorizationFormAvailableElements(
    extra: extra,
    clientId: clientId,
    authorization_form_id: authorization_form_id,
    password: password,
  );
}