From 1c92564c41f216b31b4f59a5e7f762eee6c27242 Mon Sep 17 00:00:00 2001 From: yaso Date: Tue, 12 Nov 2024 11:05:01 +0200 Subject: [PATCH] update patient queue to add business_name --- Frontend/patient_manager/lib/mih_objects/patient_queue.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Frontend/patient_manager/lib/mih_objects/patient_queue.dart b/Frontend/patient_manager/lib/mih_objects/patient_queue.dart index deddddb0..e8c5e0c9 100644 --- a/Frontend/patient_manager/lib/mih_objects/patient_queue.dart +++ b/Frontend/patient_manager/lib/mih_objects/patient_queue.dart @@ -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 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.'), };