new object for employee

This commit is contained in:
2024-09-09 14:07:36 +02:00
parent 35c72cabb6
commit f26c4bf5d1

View 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'],
);
}
}