EmailAddressResetState.fromJson constructor

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

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();
  }
}