EmailAddressAuthentication.fromJson constructor

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

Implementation

factory EmailAddressAuthentication.fromJson(Map<String, dynamic> json) {
  switch (json["@type"]) {
    case EmailAddressAuthenticationCode.CONSTRUCTOR:
      return EmailAddressAuthenticationCode.fromJson(json);
    case EmailAddressAuthenticationAppleId.CONSTRUCTOR:
      return EmailAddressAuthenticationAppleId.fromJson(json);
    case EmailAddressAuthenticationGoogleId.CONSTRUCTOR:
      return EmailAddressAuthenticationGoogleId.fromJson(json);
    default:
      return const EmailAddressAuthentication();
  }
}