fromMap static method
override
Construct from Map.
Implementation
static PasswordState? 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 has_password = _map['has_password']! as bool;
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_code_info =
EmailAddressAuthenticationCodeInfo.fromMap(
_map['recovery_email_address_code_info']);
var login_email_address_pattern =
_map['login_email_address_pattern']! as String;
var pending_reset_date = _map['pending_reset_date']! as int;
return PasswordState(
extra: extra,
clientId: clientId,
has_password: has_password,
password_hint: password_hint,
has_recovery_email_address: has_recovery_email_address,
has_passport_data: has_passport_data,
recovery_email_address_code_info: recovery_email_address_code_info,
login_email_address_pattern: login_email_address_pattern,
pending_reset_date: pending_reset_date,
);
}