ResetPasswordResult.fromJson constructor

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

Implementation

factory ResetPasswordResult.fromJson(Map<String, dynamic> json)  {
  switch(json["@type"]) {
    case ResetPasswordResultOk.CONSTRUCTOR:
      return ResetPasswordResultOk.fromJson(json);
    case ResetPasswordResultPending.CONSTRUCTOR:
      return ResetPasswordResultPending.fromJson(json);
    case ResetPasswordResultDeclined.CONSTRUCTOR:
      return ResetPasswordResultDeclined.fromJson(json);
    default:
      return const ResetPasswordResult();
  }
}