fromJson static method

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

Implementation

static ResetPasswordResult? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  switch (json['@type']) {
    case ResetPasswordResultDeclined.constructor:
      return ResetPasswordResultDeclined.fromJson(json);

    case ResetPasswordResultOk.constructor:
      return ResetPasswordResultOk.fromJson(json);

    case ResetPasswordResultPending.constructor:
      return ResetPasswordResultPending.fromJson(json);

    default:
      return null;
  }
}