object and router files update
This commit is contained in:
parent
fcd045ac40
commit
5b905be74b
44 changed files with 88 additions and 88 deletions
19
Frontend/patient_manager/lib/mih_objects/medicine.dart
Normal file
19
Frontend/patient_manager/lib/mih_objects/medicine.dart
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
class Medicine {
|
||||
final String name;
|
||||
final String unit;
|
||||
final String form;
|
||||
|
||||
const Medicine(
|
||||
this.name,
|
||||
this.unit,
|
||||
this.form,
|
||||
);
|
||||
|
||||
factory Medicine.fromJson(dynamic json) {
|
||||
return Medicine(
|
||||
json['name'],
|
||||
json['unit'],
|
||||
json['dosage form'],
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue