EmailAddressAuthentication.fromJson constructor
a EmailAddressAuthentication return type can be :
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();
}
}