Mih File Structure enhancement
This commit is contained in:
parent
f5c05d7431
commit
b69a52a5a8
294 changed files with 2782 additions and 4473 deletions
19
Frontend/lib/mih_objects/medicine.dart
Normal file
19
Frontend/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