fromJson static method
Inherited by: EmailAddressAuthenticationAppleId EmailAddressAuthenticationCode EmailAddressAuthenticationGoogleId
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;
}
}