50 lines
821 B
Dart
50 lines
821 B
Dart
class Hospital {
|
|
String id;
|
|
String name;
|
|
String address;
|
|
List<String> departments;
|
|
|
|
Hospital({
|
|
required this.id,
|
|
required this.name,
|
|
required this.address,
|
|
required this.departments,
|
|
});
|
|
}
|
|
|
|
class Doctor {
|
|
String id;
|
|
String name;
|
|
String department;
|
|
String title;
|
|
String fee;
|
|
|
|
Doctor({
|
|
required this.id,
|
|
required this.name,
|
|
required this.department,
|
|
required this.title,
|
|
required this.fee,
|
|
});
|
|
}
|
|
|
|
class Appointment {
|
|
String id;
|
|
String hospitalName;
|
|
String doctorName;
|
|
String department;
|
|
DateTime time;
|
|
String status;
|
|
String fee;
|
|
|
|
Appointment({
|
|
required this.id,
|
|
required this.hospitalName,
|
|
required this.doctorName,
|
|
required this.department,
|
|
required this.time,
|
|
required this.status,
|
|
required this.fee,
|
|
});
|
|
}
|