Smart_Vision_Assist_App/lib/models/reset_password_response.dart

19 lines
450 B
Dart

class ResetPasswordResponse {
final String status;
final String message;
const ResetPasswordResponse({
required this.status,
required this.message,
});
factory ResetPasswordResponse.fromJson(Map<String, dynamic> json) {
return ResetPasswordResponse(
status: json["status"]?.toString() ?? "error",
message: json["message"]?.toString() ?? "",
);
}
bool get isSuccess => status.toLowerCase() == "success";
}