fromMap static method

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

Construct from Map.

Implementation

static AuthorizationStateWaitEmailAddress? 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;
  return AuthorizationStateWaitEmailAddress(
    extra: extra,
    clientId: clientId,
    allow_apple_id: allow_apple_id,
    allow_google_id: allow_google_id,
  );
}