fromJson static method

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

Implementation

static EmailAddressAuthentication? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  switch (json['@type']) {
    case EmailAddressAuthenticationAppleId.constructor:
      return EmailAddressAuthenticationAppleId.fromJson(json);

    case EmailAddressAuthenticationCode.constructor:
      return EmailAddressAuthenticationCode.fromJson(json);

    case EmailAddressAuthenticationGoogleId.constructor:
      return EmailAddressAuthenticationGoogleId.fromJson(json);

    default:
      return null;
  }
}