From f26c4bf5d18f6c06f87c21684f47dfba694ad244 Mon Sep 17 00:00:00 2001 From: yaso-meth Date: Mon, 9 Sep 2024 14:07:36 +0200 Subject: [PATCH] new object for employee --- .../lib/objects/businessEmployee.dart | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Frontend/patient_manager/lib/objects/businessEmployee.dart diff --git a/Frontend/patient_manager/lib/objects/businessEmployee.dart b/Frontend/patient_manager/lib/objects/businessEmployee.dart new file mode 100644 index 00000000..5e3caf0e --- /dev/null +++ b/Frontend/patient_manager/lib/objects/businessEmployee.dart @@ -0,0 +1,35 @@ +// ignore: file_names +class BusinessEmployee { + final String business_id; + final String app_id; + final String title; + final String access; + final String fname; + final String lname; + final String email; + final String username; + + const BusinessEmployee( + this.business_id, + this.app_id, + this.title, + this.access, + this.fname, + this.lname, + this.email, + this.username, + ); + + factory BusinessEmployee.fromJson(dynamic json) { + return BusinessEmployee( + json['business_id'], + json['app_id'], + json['title'], + json['access'], + json['fname'], + json['lname'], + json['email'], + json['username'], + ); + } +}