Skip to content

Commit

Permalink
all done
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman-Pinjara committed Apr 25, 2023
1 parent e264829 commit afbbe81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/Model/prediction.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class PredictionModel {
factory PredictionModel.fromJson(Map<String, dynamic> json) {
return PredictionModel(
prediction: json['prediction'],
data: json['data'],
data: json['data'] ?? {},
);
}

Expand Down
6 changes: 3 additions & 3 deletions lib/Pages/input.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ class _InputPageState extends State<InputPage> {
prediction: 1,
data: {
"Hemoglobin": _hemocontroller.text,
"MCV": _mcvcontroller,
"MCH": _mchcontroller,
"MCHC": _mchccontroller,
"MCV": _mcvcontroller.text,
"MCH": _mchcontroller.text,
"MCHC": _mchccontroller.text,
"Gender": _gendercontroller.toString(),
},
),
Expand Down

0 comments on commit afbbe81

Please sign in to comment.