AuthorizationStateWaitEmailCode.fromJson constructor

AuthorizationStateWaitEmailCode.fromJson(
  1. Map<String, dynamic> json
)

Parse from a json

Implementation

factory AuthorizationStateWaitEmailCode.fromJson(Map<String, dynamic> json) =>
    AuthorizationStateWaitEmailCode(
      allowAppleId: json['allow_apple_id'],
      allowGoogleId: json['allow_google_id'],
      codeInfo:
          EmailAddressAuthenticationCodeInfo.fromJson(json['code_info']),
      emailAddressResetState: json['email_address_reset_state'] == null
          ? null
          : EmailAddressResetState.fromJson(
              json['email_address_reset_state']),
      extra: json['@extra'],
      clientId: json['@client_id'],
    );