From a24ee6595e85033f6eaa6f0009cafc5f9f79e24c Mon Sep 17 00:00:00 2001 From: yaso-meth Date: Tue, 6 Aug 2024 14:32:26 +0200 Subject: [PATCH] add business user object --- .../lib/objects/businessUser.dart | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Frontend/patient_manager/lib/objects/businessUser.dart diff --git a/Frontend/patient_manager/lib/objects/businessUser.dart b/Frontend/patient_manager/lib/objects/businessUser.dart new file mode 100644 index 00000000..0a39e74e --- /dev/null +++ b/Frontend/patient_manager/lib/objects/businessUser.dart @@ -0,0 +1,29 @@ +// ignore: file_names +class BusinessUser { + final int idbusiness_users; + final String business_id; + final String app_id; + final String signature; + final String type; + final String title; + + const BusinessUser( + this.idbusiness_users, + this.business_id, + this.app_id, + this.signature, + this.type, + this.title, + ); + + factory BusinessUser.fromJson(dynamic json) { + return BusinessUser( + json['idbusiness_users'], + json['business_id'], + json['app_id'], + json['signature'], + json['type'], + json['title'], + ); + } +}