fromMap static method

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

Construct from Map.

Implementation

static AuthorizationStateWaitPassword? 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 password_hint = _map['password_hint']! as String;
  var has_recovery_email_address =
      _map['has_recovery_email_address']! as bool;
  var has_passport_data = _map['has_passport_data']! as bool;
  var recovery_email_address_pattern =
      _map['recovery_email_address_pattern']! as String;
  return AuthorizationStateWaitPassword(
    extra: extra,
    clientId: clientId,
    password_hint: password_hint,
    has_recovery_email_address: has_recovery_email_address,
    has_passport_data: has_passport_data,
    recovery_email_address_pattern: recovery_email_address_pattern,
  );
}