object and router files update

This commit is contained in:
2024-09-17 16:14:54 +02:00
parent fcd045ac40
commit 5b905be74b
44 changed files with 88 additions and 88 deletions

View 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'],
);
}
}