second commit
This commit is contained in:
136
lib/Model/Response/Staffs/Getstaffsresponse.dart
Normal file
136
lib/Model/Response/Staffs/Getstaffsresponse.dart
Normal file
@@ -0,0 +1,136 @@
|
||||
class GetStaffsResponse {
|
||||
int? code;
|
||||
List<StaffDetails>? details;
|
||||
String? message;
|
||||
bool? status;
|
||||
|
||||
GetStaffsResponse({this.code, this.details, this.message, this.status});
|
||||
|
||||
GetStaffsResponse.fromJson(Map<String, dynamic> json) {
|
||||
code = json['code'];
|
||||
if (json['details'] != null) {
|
||||
details = <StaffDetails>[];
|
||||
json['details'].forEach((v) {
|
||||
details!.add(new StaffDetails.fromJson(v));
|
||||
});
|
||||
}
|
||||
message = json['message'];
|
||||
status = json['status'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['code'] = this.code;
|
||||
if (this.details != null) {
|
||||
data['details'] = this.details!.map((v) => v.toJson()).toList();
|
||||
}
|
||||
data['message'] = this.message;
|
||||
data['status'] = this.status;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class StaffDetails {
|
||||
int? userid;
|
||||
String? authname;
|
||||
int? configid;
|
||||
int? authmode;
|
||||
int? roleid;
|
||||
String? firstname;
|
||||
String? lastname;
|
||||
String? fullname;
|
||||
String? password;
|
||||
String? email;
|
||||
String? contactno;
|
||||
String? address;
|
||||
String? suburb;
|
||||
String? city;
|
||||
String? state;
|
||||
String? postcode;
|
||||
String? userfcmtoken;
|
||||
int? pin;
|
||||
int? applocationid;
|
||||
int? partnerid;
|
||||
int? tenantid;
|
||||
int? locationid;
|
||||
String? locationname;
|
||||
|
||||
StaffDetails(
|
||||
{this.userid,
|
||||
this.authname,
|
||||
this.configid,
|
||||
this.authmode,
|
||||
this.roleid,
|
||||
this.firstname,
|
||||
this.lastname,
|
||||
this.fullname,
|
||||
this.password,
|
||||
this.email,
|
||||
this.contactno,
|
||||
this.address,
|
||||
this.suburb,
|
||||
this.city,
|
||||
this.state,
|
||||
this.postcode,
|
||||
this.userfcmtoken,
|
||||
this.pin,
|
||||
this.applocationid,
|
||||
this.partnerid,
|
||||
this.tenantid,
|
||||
this.locationid,
|
||||
this.locationname});
|
||||
|
||||
StaffDetails.fromJson(Map<String, dynamic> json) {
|
||||
userid = json['userid'];
|
||||
authname = json['authname'];
|
||||
configid = json['configid'];
|
||||
authmode = json['authmode'];
|
||||
roleid = json['roleid'];
|
||||
firstname = json['firstname'];
|
||||
lastname = json['lastname'];
|
||||
fullname = json['fullname'];
|
||||
password = json['password'];
|
||||
email = json['email'];
|
||||
contactno = json['contactno'];
|
||||
address = json['address'];
|
||||
suburb = json['suburb'];
|
||||
city = json['city'];
|
||||
state = json['state'];
|
||||
postcode = json['postcode'];
|
||||
userfcmtoken = json['userfcmtoken'];
|
||||
pin = json['pin'];
|
||||
applocationid = json['applocationid'];
|
||||
partnerid = json['partnerid'];
|
||||
tenantid = json['tenantid'];
|
||||
locationid = json['locationid'];
|
||||
locationname = json['locationname'];
|
||||
}
|
||||
|
||||
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['authmode'] = this.authmode;
|
||||
data['roleid'] = this.roleid;
|
||||
data['firstname'] = this.firstname;
|
||||
data['lastname'] = this.lastname;
|
||||
data['fullname'] = this.fullname;
|
||||
data['password'] = this.password;
|
||||
data['email'] = this.email;
|
||||
data['contactno'] = this.contactno;
|
||||
data['address'] = this.address;
|
||||
data['suburb'] = this.suburb;
|
||||
data['city'] = this.city;
|
||||
data['state'] = this.state;
|
||||
data['postcode'] = this.postcode;
|
||||
data['userfcmtoken'] = this.userfcmtoken;
|
||||
data['pin'] = this.pin;
|
||||
data['applocationid'] = this.applocationid;
|
||||
data['partnerid'] = this.partnerid;
|
||||
data['tenantid'] = this.tenantid;
|
||||
data['locationid'] = this.locationid;
|
||||
data['locationname'] = this.locationname;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user