new object for employee
This commit is contained in:
parent
35c72cabb6
commit
f26c4bf5d1
1 changed files with 35 additions and 0 deletions
35
Frontend/patient_manager/lib/objects/businessEmployee.dart
Normal file
35
Frontend/patient_manager/lib/objects/businessEmployee.dart
Normal file
|
|
@ -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'],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue