EmailAddressResetState.fromJson constructor
a EmailAddressResetState return type can be :
Implementation
factory EmailAddressResetState.fromJson(Map<String, dynamic> json) {
switch (json["@type"]) {
case EmailAddressResetStateAvailable.CONSTRUCTOR:
return EmailAddressResetStateAvailable.fromJson(json);
case EmailAddressResetStatePending.CONSTRUCTOR:
return EmailAddressResetStatePending.fromJson(json);
default:
return const EmailAddressResetState();
}
}