Files
daily_mobileapp_merchant/lib/Model/Response/Tenantpricing/Tenantpricingresponse.dart
2026-05-27 10:35:09 +05:30

106 lines
2.9 KiB
Dart

class GetTenantPricing {
int? code;
GetTenantPricingDetails? details;
String? message;
bool? status;
GetTenantPricing({this.code, this.details, this.message, this.status});
GetTenantPricing.fromJson(Map<String, dynamic> json) {
code = json['code'];
details =
json['details'] != null ? new GetTenantPricingDetails.fromJson(json['details']) : null;
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!.toJson();
}
data['message'] = this.message;
data['status'] = this.status;
return data;
}
}
class GetTenantPricingDetails {
int? tenantpricingid;
int? pricingid;
int? tenantid;
int? applocationid;
int? pricingtypeid;
String? pricingtype;
int? locationid;
String? slab;
int? configid;
String? pricingdate;
int? baseprice;
double? priceperkm;
int? minkm;
int? maxkm;
int? orders;
int? othercharges;
GetTenantPricingDetails(
{this.tenantpricingid,
this.pricingid,
this.tenantid,
this.applocationid,
this.pricingtypeid,
this.pricingtype,
this.locationid,
this.slab,
this.configid,
this.pricingdate,
this.baseprice,
this.priceperkm,
this.minkm,
this.maxkm,
this.orders,
this.othercharges});
GetTenantPricingDetails.fromJson(Map<String, dynamic> json) {
tenantpricingid = json['tenantpricingid'];
pricingid = json['pricingid'];
tenantid = json['tenantid'];
applocationid = json['applocationid'];
pricingtypeid = json['pricingtypeid'];
pricingtype = json['pricingtype'];
locationid = json['locationid'];
slab = json['slab'];
configid = json['configid'];
pricingdate = json['pricingdate'];
baseprice = json['baseprice'];
priceperkm = json['priceperkm'].toDouble();
minkm = json['minkm'];
maxkm = json['maxkm'];
orders = json['orders'];
othercharges = json['othercharges'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['tenantpricingid'] = this.tenantpricingid;
data['pricingid'] = this.pricingid;
data['tenantid'] = this.tenantid;
data['applocationid'] = this.applocationid;
data['pricingtypeid'] = this.pricingtypeid;
data['pricingtype'] = this.pricingtype;
data['locationid'] = this.locationid;
data['slab'] = this.slab;
data['configid'] = this.configid;
data['pricingdate'] = this.pricingdate;
data['baseprice'] = this.baseprice;
data['priceperkm'] = this.priceperkm;
data['minkm'] = this.minkm;
data['maxkm'] = this.maxkm;
data['orders'] = this.orders;
data['othercharges'] = this.othercharges;
return data;
}
}