fromMap static method
override
Construct from Map.
Implementation
static AuthorizationStateWaitEmailCode? 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 allow_apple_id = _map['allow_apple_id']! as bool;
var allow_google_id = _map['allow_google_id']! as bool;
var code_info =
EmailAddressAuthenticationCodeInfo.fromMap(_map['code_info'])!;
var email_address_reset_state =
EmailAddressResetState.fromMap(_map['email_address_reset_state']);
return AuthorizationStateWaitEmailCode(
extra: extra,
clientId: clientId,
allow_apple_id: allow_apple_id,
allow_google_id: allow_google_id,
code_info: code_info,
email_address_reset_state: email_address_reset_state,
);
}