ResetPasswordResult.fromJson constructor
a ResetPasswordResult return type can be :
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();
}
}