second commit
This commit is contained in:
@@ -0,0 +1,116 @@
|
||||
class GetDropCustomerByTenantId {
|
||||
int? code;
|
||||
List<GetDropCustomerByTenantIdDetails>? details;
|
||||
String? message;
|
||||
bool? status;
|
||||
|
||||
GetDropCustomerByTenantId({this.code, this.details, this.message, this.status});
|
||||
|
||||
GetDropCustomerByTenantId.fromJson(Map<String, dynamic> json) {
|
||||
code = json['code'];
|
||||
if (json['details'] != null) {
|
||||
details = <GetDropCustomerByTenantIdDetails>[];
|
||||
json['details'].forEach((v) {
|
||||
details!.add(new GetDropCustomerByTenantIdDetails.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 GetDropCustomerByTenantIdDetails {
|
||||
int? customerid;
|
||||
String? firstname;
|
||||
String? lastname;
|
||||
String? contactno;
|
||||
String? email;
|
||||
int? deliverylocationid;
|
||||
String? address;
|
||||
String? suburb;
|
||||
String? city;
|
||||
String? state;
|
||||
String? landmark;
|
||||
String? doorno;
|
||||
String? postcode;
|
||||
String? latitude;
|
||||
String? longitude;
|
||||
int? applocationid;
|
||||
int? tenantlocationid;
|
||||
int? status;
|
||||
|
||||
GetDropCustomerByTenantIdDetails(
|
||||
{this.customerid,
|
||||
this.firstname,
|
||||
this.lastname,
|
||||
this.contactno,
|
||||
this.email,
|
||||
this.deliverylocationid,
|
||||
this.address,
|
||||
this.suburb,
|
||||
this.city,
|
||||
this.state,
|
||||
this.landmark,
|
||||
this.doorno,
|
||||
this.postcode,
|
||||
this.latitude,
|
||||
this.longitude,
|
||||
this.applocationid,
|
||||
this.tenantlocationid,
|
||||
this.status});
|
||||
|
||||
GetDropCustomerByTenantIdDetails.fromJson(Map<String, dynamic> json) {
|
||||
customerid = json['customerid'];
|
||||
firstname = json['firstname'];
|
||||
lastname = json['lastname'];
|
||||
contactno = json['contactno'];
|
||||
email = json['email'];
|
||||
deliverylocationid = json['deliverylocationid'];
|
||||
address = json['address'];
|
||||
suburb = json['suburb'];
|
||||
city = json['city'];
|
||||
state = json['state'];
|
||||
landmark = json['landmark'];
|
||||
doorno = json['doorno'];
|
||||
postcode = json['postcode'];
|
||||
latitude = json['latitude'];
|
||||
longitude = json['longitude'];
|
||||
applocationid = json['applocationid'];
|
||||
tenantlocationid = json['tenantlocationid'];
|
||||
status = json['status'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['customerid'] = this.customerid;
|
||||
data['firstname'] = this.firstname;
|
||||
data['lastname'] = this.lastname;
|
||||
data['contactno'] = this.contactno;
|
||||
data['email'] = this.email;
|
||||
data['deliverylocationid'] = this.deliverylocationid;
|
||||
data['address'] = this.address;
|
||||
data['suburb'] = this.suburb;
|
||||
data['city'] = this.city;
|
||||
data['state'] = this.state;
|
||||
data['landmark'] = this.landmark;
|
||||
data['doorno'] = this.doorno;
|
||||
data['postcode'] = this.postcode;
|
||||
data['latitude'] = this.latitude;
|
||||
data['longitude'] = this.longitude;
|
||||
data['applocationid'] = this.applocationid;
|
||||
data['tenantlocationid'] = this.tenantlocationid;
|
||||
data['status'] = this.status;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user