second commit
This commit is contained in:
80
lib/Model/Request/Staffs/Addstaffs/Addstaffsrequest.dart
Normal file
80
lib/Model/Request/Staffs/Addstaffs/Addstaffsrequest.dart
Normal file
@@ -0,0 +1,80 @@
|
||||
class CreateStaffRequest {
|
||||
int? userid;
|
||||
String? authname;
|
||||
int? configid;
|
||||
String? contactno;
|
||||
String? firstname;
|
||||
String? lastrname;
|
||||
String? email;
|
||||
String? address;
|
||||
String? suburb;
|
||||
String? city;
|
||||
String? state;
|
||||
String? postcode;
|
||||
int? roleid;
|
||||
int? applocationid;
|
||||
int? partnerid;
|
||||
int? tenantid;
|
||||
int? locationid;
|
||||
|
||||
CreateStaffRequest(
|
||||
{this.userid,
|
||||
this.authname,
|
||||
this.configid,
|
||||
this.contactno,
|
||||
this.firstname,
|
||||
this.lastrname,
|
||||
this.email,
|
||||
this.address,
|
||||
this.suburb,
|
||||
this.city,
|
||||
this.state,
|
||||
this.postcode,
|
||||
this.roleid,
|
||||
this.applocationid,
|
||||
this.partnerid,
|
||||
this.tenantid,
|
||||
this.locationid});
|
||||
|
||||
CreateStaffRequest.fromJson(Map<String, dynamic> json) {
|
||||
userid = json['userid'];
|
||||
authname = json['authname'];
|
||||
configid = json['configid'];
|
||||
contactno = json['contactno'];
|
||||
firstname = json['firstname'];
|
||||
lastrname = json['lastrname'];
|
||||
email = json['email'];
|
||||
address = json['address'];
|
||||
suburb = json['suburb'];
|
||||
city = json['city'];
|
||||
state = json['state'];
|
||||
postcode = json['postcode'];
|
||||
roleid = json['roleid'];
|
||||
applocationid = json['applocationid'];
|
||||
partnerid = json['partnerid'];
|
||||
tenantid = json['tenantid'];
|
||||
locationid = json['locationid'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['userid'] = this.userid;
|
||||
data['authname'] = this.authname;
|
||||
data['configid'] = this.configid;
|
||||
data['contactno'] = this.contactno;
|
||||
data['firstname'] = this.firstname;
|
||||
data['lastrname'] = this.lastrname;
|
||||
data['email'] = this.email;
|
||||
data['address'] = this.address;
|
||||
data['suburb'] = this.suburb;
|
||||
data['city'] = this.city;
|
||||
data['state'] = this.state;
|
||||
data['postcode'] = this.postcode;
|
||||
data['roleid'] = this.roleid;
|
||||
data['applocationid'] = this.applocationid;
|
||||
data['partnerid'] = this.partnerid;
|
||||
data['tenantid'] = this.tenantid;
|
||||
data['locationid'] = this.locationid;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
80
lib/Model/Request/Staffs/UpdateStaff/Updatestaffrequest.dart
Normal file
80
lib/Model/Request/Staffs/UpdateStaff/Updatestaffrequest.dart
Normal file
@@ -0,0 +1,80 @@
|
||||
class UpdateStaffRequest {
|
||||
int? userid;
|
||||
String? authname;
|
||||
int? configid;
|
||||
String? contactno;
|
||||
String? firstname;
|
||||
String? lastrname;
|
||||
String? email;
|
||||
String? address;
|
||||
String? suburb;
|
||||
String? city;
|
||||
String? state;
|
||||
String? postcode;
|
||||
int? roleid;
|
||||
int? applocationid;
|
||||
int? partnerid;
|
||||
int? tenantid;
|
||||
int? locationid;
|
||||
|
||||
UpdateStaffRequest(
|
||||
{this.userid,
|
||||
this.authname,
|
||||
this.configid,
|
||||
this.contactno,
|
||||
this.firstname,
|
||||
this.lastrname,
|
||||
this.email,
|
||||
this.address,
|
||||
this.suburb,
|
||||
this.city,
|
||||
this.state,
|
||||
this.postcode,
|
||||
this.roleid,
|
||||
this.applocationid,
|
||||
this.partnerid,
|
||||
this.tenantid,
|
||||
this.locationid});
|
||||
|
||||
UpdateStaffRequest.fromJson(Map<String, dynamic> json) {
|
||||
userid = json['userid'];
|
||||
authname = json['authname'];
|
||||
configid = json['configid'];
|
||||
contactno = json['contactno'];
|
||||
firstname = json['firstname'];
|
||||
lastrname = json['lastrname'];
|
||||
email = json['email'];
|
||||
address = json['address'];
|
||||
suburb = json['suburb'];
|
||||
city = json['city'];
|
||||
state = json['state'];
|
||||
postcode = json['postcode'];
|
||||
roleid = json['roleid'];
|
||||
applocationid = json['applocationid'];
|
||||
partnerid = json['partnerid'];
|
||||
tenantid = json['tenantid'];
|
||||
locationid = json['locationid'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['userid'] = this.userid;
|
||||
data['authname'] = this.authname;
|
||||
data['configid'] = this.configid;
|
||||
data['contactno'] = this.contactno;
|
||||
data['firstname'] = this.firstname;
|
||||
data['lastrname'] = this.lastrname;
|
||||
data['email'] = this.email;
|
||||
data['address'] = this.address;
|
||||
data['suburb'] = this.suburb;
|
||||
data['city'] = this.city;
|
||||
data['state'] = this.state;
|
||||
data['postcode'] = this.postcode;
|
||||
data['roleid'] = this.roleid;
|
||||
data['applocationid'] = this.applocationid;
|
||||
data['partnerid'] = this.partnerid;
|
||||
data['tenantid'] = this.tenantid;
|
||||
data['locationid'] = this.locationid;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user