forked from yaso_meth/mih-project
update patient queue to add business_name
This commit is contained in:
@@ -7,6 +7,7 @@ class PatientQueue {
|
||||
final String first_name;
|
||||
final String last_name;
|
||||
final String medical_aid_no;
|
||||
final String business_name;
|
||||
|
||||
const PatientQueue({
|
||||
required this.idpatient_queue,
|
||||
@@ -17,6 +18,7 @@ class PatientQueue {
|
||||
required this.first_name,
|
||||
required this.last_name,
|
||||
required this.medical_aid_no,
|
||||
required this.business_name,
|
||||
});
|
||||
|
||||
factory PatientQueue.fromJson(Map<String, dynamic> json) {
|
||||
@@ -30,6 +32,7 @@ class PatientQueue {
|
||||
'first_name': String first_name,
|
||||
'last_name': String last_name,
|
||||
'medical_aid_no': String medical_aid_no,
|
||||
'business_name': String business_name,
|
||||
} =>
|
||||
PatientQueue(
|
||||
idpatient_queue: idpatient_queue,
|
||||
@@ -40,6 +43,7 @@ class PatientQueue {
|
||||
first_name: first_name,
|
||||
last_name: last_name,
|
||||
medical_aid_no: medical_aid_no,
|
||||
business_name: business_name,
|
||||
),
|
||||
_ => throw const FormatException('Failed to load album.'),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user