Commit 7210793a authored by Sai Srinivas's avatar Sai Srinivas
Browse files

17-09

parent 185e0896
...@@ -3,27 +3,30 @@ class AddOrderPaymentSelectOrderResponse { ...@@ -3,27 +3,30 @@ class AddOrderPaymentSelectOrderResponse {
List<OrderList>? orderList; List<OrderList>? orderList;
String? message; String? message;
AddOrderPaymentSelectOrderResponse( AddOrderPaymentSelectOrderResponse({
{this.error, this.orderList, this.message}); this.error,
this.orderList,
this.message,
});
AddOrderPaymentSelectOrderResponse.fromJson(Map<String, dynamic> json) { AddOrderPaymentSelectOrderResponse.fromJson(Map<String, dynamic> json) {
error = json['error']; error = json['error'];
if (json['order_list'] != null) { if (json['order_list'] != null) {
orderList = <OrderList>[]; orderList = <OrderList>[];
json['order_list'].forEach((v) { json['order_list'].forEach((v) {
orderList!.add(new OrderList.fromJson(v)); orderList!.add(OrderList.fromJson(v));
}); });
} }
message = json['message']; message = json['message'];
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['error'] = this.error; data['error'] = error;
if (this.orderList != null) { if (orderList != null) {
data['order_list'] = this.orderList!.map((v) => v.toJson()).toList(); data['order_list'] = orderList!.map((v) => v.toJson()).toList();
} }
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -35,12 +38,13 @@ class OrderList { ...@@ -35,12 +38,13 @@ class OrderList {
String? balanceAmount; String? balanceAmount;
String? createdDatetime; String? createdDatetime;
OrderList( OrderList({
{this.orderId, this.orderId,
this.orderNumber, this.orderNumber,
this.totalAmount, this.totalAmount,
this.balanceAmount, this.balanceAmount,
this.createdDatetime}); this.createdDatetime,
});
OrderList.fromJson(Map<String, dynamic> json) { OrderList.fromJson(Map<String, dynamic> json) {
orderId = json['order_id']; orderId = json['order_id'];
...@@ -51,12 +55,12 @@ class OrderList { ...@@ -51,12 +55,12 @@ class OrderList {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['order_id'] = this.orderId; data['order_id'] = orderId;
data['order_number'] = this.orderNumber; data['order_number'] = orderNumber;
data['total_amount'] = this.totalAmount; data['total_amount'] = totalAmount;
data['balance_amount'] = this.balanceAmount; data['balance_amount'] = balanceAmount;
data['created_datetime'] = this.createdDatetime; data['created_datetime'] = createdDatetime;
return data; return data;
} }
} }
...@@ -8,33 +8,34 @@ class AddOrderViewResponse { ...@@ -8,33 +8,34 @@ class AddOrderViewResponse {
String? error; String? error;
String? message; String? message;
AddOrderViewResponse( AddOrderViewResponse({
{this.employees, this.employees,
this.states, this.states,
this.saleProducts, this.saleProducts,
this.unloadingScope, this.unloadingScope,
this.freightScope, this.freightScope,
this.erectionScope, this.erectionScope,
this.error, this.error,
this.message}); this.message,
});
AddOrderViewResponse.fromJson(Map<String, dynamic> json) { AddOrderViewResponse.fromJson(Map<String, dynamic> json) {
if (json['employees'] != null) { if (json['employees'] != null) {
employees = <Employees>[]; employees = <Employees>[];
json['employees'].forEach((v) { json['employees'].forEach((v) {
employees!.add(new Employees.fromJson(v)); employees!.add(Employees.fromJson(v));
}); });
} }
if (json['states'] != null) { if (json['states'] != null) {
states = <States>[]; states = <States>[];
json['states'].forEach((v) { json['states'].forEach((v) {
states!.add(new States.fromJson(v)); states!.add(States.fromJson(v));
}); });
} }
if (json['sale_products'] != null) { if (json['sale_products'] != null) {
saleProducts = <SaleProducts>[]; saleProducts = <SaleProducts>[];
json['sale_products'].forEach((v) { json['sale_products'].forEach((v) {
saleProducts!.add(new SaleProducts.fromJson(v)); saleProducts!.add(SaleProducts.fromJson(v));
}); });
} }
unloadingScope = json['unloading_scope'].cast<String>(); unloadingScope = json['unloading_scope'].cast<String>();
...@@ -45,22 +46,21 @@ class AddOrderViewResponse { ...@@ -45,22 +46,21 @@ class AddOrderViewResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
if (this.employees != null) { if (employees != null) {
data['employees'] = this.employees!.map((v) => v.toJson()).toList(); data['employees'] = employees!.map((v) => v.toJson()).toList();
} }
if (this.states != null) { if (states != null) {
data['states'] = this.states!.map((v) => v.toJson()).toList(); data['states'] = states!.map((v) => v.toJson()).toList();
} }
if (this.saleProducts != null) { if (saleProducts != null) {
data['sale_products'] = data['sale_products'] = saleProducts!.map((v) => v.toJson()).toList();
this.saleProducts!.map((v) => v.toJson()).toList();
} }
data['unloading_scope'] = this.unloadingScope; data['unloading_scope'] = unloadingScope;
data['freight_scope'] = this.freightScope; data['freight_scope'] = freightScope;
data['erection_scope'] = this.erectionScope; data['erection_scope'] = erectionScope;
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -77,9 +77,9 @@ class Employees { ...@@ -77,9 +77,9 @@ class Employees {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['name'] = this.name; data['name'] = name;
return data; return data;
} }
} }
...@@ -111,32 +111,33 @@ class SaleProducts { ...@@ -111,32 +111,33 @@ class SaleProducts {
String? isExists; String? isExists;
String? updatedDatetime; String? updatedDatetime;
SaleProducts( SaleProducts({
{this.id, this.id,
this.productCode, this.productCode,
this.project, this.project,
this.subGroup, this.subGroup,
this.vendor1, this.vendor1,
this.vendor2, this.vendor2,
this.vendorCode, this.vendorCode,
this.prodName, this.prodName,
this.brand, this.brand,
this.imageDirFilePath, this.imageDirFilePath,
this.imageViewFileName, this.imageViewFileName,
this.prodDesc, this.prodDesc,
this.hsnCode, this.hsnCode,
this.units, this.units,
this.unitsId, this.unitsId,
this.worksMsl, this.worksMsl,
this.refType, this.refType,
this.refId, this.refId,
this.price, this.price,
this.type, this.type,
this.productionProcessId, this.productionProcessId,
this.createdBy, this.createdBy,
this.datetime, this.datetime,
this.isExists, this.isExists,
this.updatedDatetime}); this.updatedDatetime,
});
SaleProducts.fromJson(Map<String, dynamic> json) { SaleProducts.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];
...@@ -167,32 +168,32 @@ class SaleProducts { ...@@ -167,32 +168,32 @@ class SaleProducts {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['product_code'] = this.productCode; data['product_code'] = productCode;
data['project'] = this.project; data['project'] = project;
data['sub_group'] = this.subGroup; data['sub_group'] = subGroup;
data['vendor_1'] = this.vendor1; data['vendor_1'] = vendor1;
data['vendor_2'] = this.vendor2; data['vendor_2'] = vendor2;
data['vendor_code'] = this.vendorCode; data['vendor_code'] = vendorCode;
data['prod_name'] = this.prodName; data['prod_name'] = prodName;
data['brand'] = this.brand; data['brand'] = brand;
data['image_dir_file_path'] = this.imageDirFilePath; data['image_dir_file_path'] = imageDirFilePath;
data['image_view_file_name'] = this.imageViewFileName; data['image_view_file_name'] = imageViewFileName;
data['prod_desc'] = this.prodDesc; data['prod_desc'] = prodDesc;
data['hsn_code'] = this.hsnCode; data['hsn_code'] = hsnCode;
data['units'] = this.units; data['units'] = units;
data['units_id'] = this.unitsId; data['units_id'] = unitsId;
data['works_msl'] = this.worksMsl; data['works_msl'] = worksMsl;
data['ref_type'] = this.refType; data['ref_type'] = refType;
data['ref_id'] = this.refId; data['ref_id'] = refId;
data['price'] = this.price; data['price'] = price;
data['type'] = this.type; data['type'] = type;
data['production_process_id'] = this.productionProcessId; data['production_process_id'] = productionProcessId;
data['created_by'] = this.createdBy; data['created_by'] = createdBy;
data['datetime'] = this.datetime; data['datetime'] = datetime;
data['is_exists'] = this.isExists; data['is_exists'] = isExists;
data['updated_datetime'] = this.updatedDatetime; data['updated_datetime'] = updatedDatetime;
return data; return data;
} }
} }
...@@ -209,9 +210,9 @@ class States { ...@@ -209,9 +210,9 @@ class States {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['name'] = this.name; data['name'] = name;
return data; return data;
} }
} }
\ No newline at end of file
...@@ -4,21 +4,26 @@ class EditPaymentDetailsAdjustedOrdersViewResponse { ...@@ -4,21 +4,26 @@ class EditPaymentDetailsAdjustedOrdersViewResponse {
String? error; String? error;
String? message; String? message;
EditPaymentDetailsAdjustedOrdersViewResponse( EditPaymentDetailsAdjustedOrdersViewResponse({
{this.paidList, this.editOrderList, this.error, this.message}); this.paidList,
this.editOrderList,
this.error,
this.message,
});
EditPaymentDetailsAdjustedOrdersViewResponse.fromJson( EditPaymentDetailsAdjustedOrdersViewResponse.fromJson(
Map<String, dynamic> json) { Map<String, dynamic> json,
) {
if (json['paid_list'] != null) { if (json['paid_list'] != null) {
paidList = <EditPaidList>[]; paidList = <EditPaidList>[];
json['paid_list'].forEach((v) { json['paid_list'].forEach((v) {
paidList!.add(new EditPaidList.fromJson(v)); paidList!.add(EditPaidList.fromJson(v));
}); });
} }
if (json['order_list'] != null) { if (json['order_list'] != null) {
editOrderList = <EditOrderList>[]; editOrderList = <EditOrderList>[];
json['order_list'].forEach((v) { json['order_list'].forEach((v) {
editOrderList!.add(new EditOrderList.fromJson(v)); editOrderList!.add(EditOrderList.fromJson(v));
}); });
} }
error = json['error']; error = json['error'];
...@@ -26,15 +31,15 @@ class EditPaymentDetailsAdjustedOrdersViewResponse { ...@@ -26,15 +31,15 @@ class EditPaymentDetailsAdjustedOrdersViewResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
if (this.paidList != null) { if (paidList != null) {
data['paid_list'] = this.paidList!.map((v) => v.toJson()).toList(); data['paid_list'] = paidList!.map((v) => v.toJson()).toList();
} }
if (this.editOrderList != null) { if (editOrderList != null) {
data['order_list'] = this.editOrderList!.map((v) => v.toJson()).toList(); data['order_list'] = editOrderList!.map((v) => v.toJson()).toList();
} }
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -49,15 +54,16 @@ class EditPaidList { ...@@ -49,15 +54,16 @@ class EditPaidList {
String? balanceAmount; String? balanceAmount;
String? adjustedAmount; String? adjustedAmount;
EditPaidList( EditPaidList({
{this.accId, this.accId,
this.orderId, this.orderId,
this.orderPaymentId, this.orderPaymentId,
this.orderNumber, this.orderNumber,
this.orderAmount, this.orderAmount,
this.paidAmount, this.paidAmount,
this.balanceAmount, this.balanceAmount,
this.adjustedAmount}); this.adjustedAmount,
});
EditPaidList.fromJson(Map<String, dynamic> json) { EditPaidList.fromJson(Map<String, dynamic> json) {
accId = json['acc_id']; accId = json['acc_id'];
...@@ -71,15 +77,15 @@ class EditPaidList { ...@@ -71,15 +77,15 @@ class EditPaidList {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['acc_id'] = this.accId; data['acc_id'] = accId;
data['order_id'] = this.orderId; data['order_id'] = orderId;
data['order_payment_id'] = this.orderPaymentId; data['order_payment_id'] = orderPaymentId;
data['order_number'] = this.orderNumber; data['order_number'] = orderNumber;
data['order_amount'] = this.orderAmount; data['order_amount'] = orderAmount;
data['paid_amount'] = this.paidAmount; data['paid_amount'] = paidAmount;
data['balance_amount'] = this.balanceAmount; data['balance_amount'] = balanceAmount;
data['adjusted_amount'] = this.adjustedAmount; data['adjusted_amount'] = adjustedAmount;
return data; return data;
} }
} }
...@@ -91,12 +97,13 @@ class EditOrderList { ...@@ -91,12 +97,13 @@ class EditOrderList {
String? balanceAmount; String? balanceAmount;
String? createdDatetime; String? createdDatetime;
EditOrderList( EditOrderList({
{this.orderId, this.orderId,
this.orderNumber, this.orderNumber,
this.totalAmount, this.totalAmount,
this.balanceAmount, this.balanceAmount,
this.createdDatetime}); this.createdDatetime,
});
EditOrderList.fromJson(Map<String, dynamic> json) { EditOrderList.fromJson(Map<String, dynamic> json) {
orderId = json['order_id']; orderId = json['order_id'];
...@@ -107,12 +114,12 @@ class EditOrderList { ...@@ -107,12 +114,12 @@ class EditOrderList {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['order_id'] = this.orderId; data['order_id'] = orderId;
data['order_number'] = this.orderNumber; data['order_number'] = orderNumber;
data['total_amount'] = this.totalAmount; data['total_amount'] = totalAmount;
data['balance_amount'] = this.balanceAmount; data['balance_amount'] = balanceAmount;
data['created_datetime'] = this.createdDatetime; data['created_datetime'] = createdDatetime;
return data; return data;
} }
} }
...@@ -3,14 +3,17 @@ class PendingTPCAgentListResponse { ...@@ -3,14 +3,17 @@ class PendingTPCAgentListResponse {
String? error; String? error;
String? message; String? message;
PendingTPCAgentListResponse( PendingTPCAgentListResponse({
{this.pendingTpcIssueList, this.error, this.message}); this.pendingTpcIssueList,
this.error,
this.message,
});
PendingTPCAgentListResponse.fromJson(Map<String, dynamic> json) { PendingTPCAgentListResponse.fromJson(Map<String, dynamic> json) {
if (json['pending_tpc_issue_list'] != null) { if (json['pending_tpc_issue_list'] != null) {
pendingTpcIssueList = <PendingTpcIssueList>[]; pendingTpcIssueList = <PendingTpcIssueList>[];
json['pending_tpc_issue_list'].forEach((v) { json['pending_tpc_issue_list'].forEach((v) {
pendingTpcIssueList!.add(new PendingTpcIssueList.fromJson(v)); pendingTpcIssueList!.add(PendingTpcIssueList.fromJson(v));
}); });
} }
error = json['error']; error = json['error'];
...@@ -18,13 +21,13 @@ class PendingTPCAgentListResponse { ...@@ -18,13 +21,13 @@ class PendingTPCAgentListResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
if (this.pendingTpcIssueList != null) { if (pendingTpcIssueList != null) {
data['pending_tpc_issue_list'] = data['pending_tpc_issue_list'] =
this.pendingTpcIssueList!.map((v) => v.toJson()).toList(); pendingTpcIssueList!.map((v) => v.toJson()).toList();
} }
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -57,33 +60,34 @@ class PendingTpcIssueList { ...@@ -57,33 +60,34 @@ class PendingTpcIssueList {
String? tpcStatus; String? tpcStatus;
String? requestedTpcAmount; String? requestedTpcAmount;
PendingTpcIssueList( PendingTpcIssueList({
{this.id, this.id,
this.name, this.name,
this.mobileNumber, this.mobileNumber,
this.idProofDirFilePath, this.idProofDirFilePath,
this.idProofViewFileName, this.idProofViewFileName,
this.bankName, this.bankName,
this.bankBeneficiaryName, this.bankBeneficiaryName,
this.bankAccountNo, this.bankAccountNo,
this.bankIfscCode, this.bankIfscCode,
this.note, this.note,
this.enteredEmpId, this.enteredEmpId,
this.isExists, this.isExists,
this.createdDatetime, this.createdDatetime,
this.updatedDatetime, this.updatedDatetime,
this.tpcAgentId, this.tpcAgentId,
this.aname, this.aname,
this.ename, this.ename,
this.orderId, this.orderId,
this.totalAmount, this.totalAmount,
this.paidAmount, this.paidAmount,
this.orderNumber, this.orderNumber,
this.level1TpcApprovedAmount, this.level1TpcApprovedAmount,
this.level2TpcApprovedAmount, this.level2TpcApprovedAmount,
this.status, this.status,
this.tpcStatus, this.tpcStatus,
this.requestedTpcAmount}); this.requestedTpcAmount,
});
PendingTpcIssueList.fromJson(Map<String, dynamic> json) { PendingTpcIssueList.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];
...@@ -115,33 +119,33 @@ class PendingTpcIssueList { ...@@ -115,33 +119,33 @@ class PendingTpcIssueList {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['name'] = this.name; data['name'] = name;
data['mobile_number'] = this.mobileNumber; data['mobile_number'] = mobileNumber;
data['id_proof_dir_file_path'] = this.idProofDirFilePath; data['id_proof_dir_file_path'] = idProofDirFilePath;
data['id_proof_view_file_name'] = this.idProofViewFileName; data['id_proof_view_file_name'] = idProofViewFileName;
data['bank_name'] = this.bankName; data['bank_name'] = bankName;
data['bank_beneficiary_name'] = this.bankBeneficiaryName; data['bank_beneficiary_name'] = bankBeneficiaryName;
data['bank_account_no'] = this.bankAccountNo; data['bank_account_no'] = bankAccountNo;
data['bank_ifsc_code'] = this.bankIfscCode; data['bank_ifsc_code'] = bankIfscCode;
data['note'] = this.note; data['note'] = note;
data['entered_emp_id'] = this.enteredEmpId; data['entered_emp_id'] = enteredEmpId;
data['is_exists'] = this.isExists; data['is_exists'] = isExists;
data['created_datetime'] = this.createdDatetime; data['created_datetime'] = createdDatetime;
data['updated_datetime'] = this.updatedDatetime; data['updated_datetime'] = updatedDatetime;
data['tpc_agent_id'] = this.tpcAgentId; data['tpc_agent_id'] = tpcAgentId;
data['aname'] = this.aname; data['aname'] = aname;
data['ename'] = this.ename; data['ename'] = ename;
data['order_id'] = this.orderId; data['order_id'] = orderId;
data['total_amount'] = this.totalAmount; data['total_amount'] = totalAmount;
data['paid_amount'] = this.paidAmount; data['paid_amount'] = paidAmount;
data['order_number'] = this.orderNumber; data['order_number'] = orderNumber;
data['level1_tpc_approved_amount'] = this.level1TpcApprovedAmount; data['level1_tpc_approved_amount'] = level1TpcApprovedAmount;
data['level2_tpc_approved_amount'] = this.level2TpcApprovedAmount; data['level2_tpc_approved_amount'] = level2TpcApprovedAmount;
data['status'] = this.status; data['status'] = status;
data['tpc_status'] = this.tpcStatus; data['tpc_status'] = tpcStatus;
data['requested_tpc_amount'] = this.requestedTpcAmount; data['requested_tpc_amount'] = requestedTpcAmount;
return data; return data;
} }
} }
...@@ -4,20 +4,22 @@ class TPCAgentDetailsResponse { ...@@ -4,20 +4,22 @@ class TPCAgentDetailsResponse {
String? error; String? error;
String? message; String? message;
TPCAgentDetailsResponse( TPCAgentDetailsResponse({
{this.tpcAgentDetails, this.tpcAgentDetails,
this.tpcRequestedAmounts, this.tpcRequestedAmounts,
this.error, this.error,
this.message}); this.message,
});
TPCAgentDetailsResponse.fromJson(Map<String, dynamic> json) { TPCAgentDetailsResponse.fromJson(Map<String, dynamic> json) {
tpcAgentDetails = json['tpc_agent_details'] != null tpcAgentDetails =
? new TpcAgentDetails.fromJson(json['tpc_agent_details']) json['tpc_agent_details'] != null
: null; ? TpcAgentDetails.fromJson(json['tpc_agent_details'])
: null;
if (json['tpc_requested_amounts'] != null) { if (json['tpc_requested_amounts'] != null) {
tpcRequestedAmounts = <TpcRequestedAmounts>[]; tpcRequestedAmounts = <TpcRequestedAmounts>[];
json['tpc_requested_amounts'].forEach((v) { json['tpc_requested_amounts'].forEach((v) {
tpcRequestedAmounts!.add(new TpcRequestedAmounts.fromJson(v)); tpcRequestedAmounts!.add(TpcRequestedAmounts.fromJson(v));
}); });
} }
error = json['error']; error = json['error'];
...@@ -25,16 +27,16 @@ class TPCAgentDetailsResponse { ...@@ -25,16 +27,16 @@ class TPCAgentDetailsResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
if (this.tpcAgentDetails != null) { if (tpcAgentDetails != null) {
data['tpc_agent_details'] = this.tpcAgentDetails!.toJson(); data['tpc_agent_details'] = tpcAgentDetails!.toJson();
} }
if (this.tpcRequestedAmounts != null) { if (tpcRequestedAmounts != null) {
data['tpc_requested_amounts'] = data['tpc_requested_amounts'] =
this.tpcRequestedAmounts!.map((v) => v.toJson()).toList(); tpcRequestedAmounts!.map((v) => v.toJson()).toList();
} }
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -57,23 +59,24 @@ class TpcAgentDetails { ...@@ -57,23 +59,24 @@ class TpcAgentDetails {
String? tpcAgentId; String? tpcAgentId;
String? enteredEmployee; String? enteredEmployee;
TpcAgentDetails( TpcAgentDetails({
{this.id, this.id,
this.name, this.name,
this.mobileNumber, this.mobileNumber,
this.idProofDirFilePath, this.idProofDirFilePath,
this.idProofViewFileName, this.idProofViewFileName,
this.bankName, this.bankName,
this.bankBeneficiaryName, this.bankBeneficiaryName,
this.bankAccountNo, this.bankAccountNo,
this.bankIfscCode, this.bankIfscCode,
this.note, this.note,
this.enteredEmpId, this.enteredEmpId,
this.isExists, this.isExists,
this.createdDatetime, this.createdDatetime,
this.updatedDatetime, this.updatedDatetime,
this.tpcAgentId, this.tpcAgentId,
this.enteredEmployee}); this.enteredEmployee,
});
TpcAgentDetails.fromJson(Map<String, dynamic> json) { TpcAgentDetails.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];
...@@ -95,23 +98,23 @@ class TpcAgentDetails { ...@@ -95,23 +98,23 @@ class TpcAgentDetails {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['name'] = this.name; data['name'] = name;
data['mobile_number'] = this.mobileNumber; data['mobile_number'] = mobileNumber;
data['id_proof_dir_file_path'] = this.idProofDirFilePath; data['id_proof_dir_file_path'] = idProofDirFilePath;
data['id_proof_view_file_name'] = this.idProofViewFileName; data['id_proof_view_file_name'] = idProofViewFileName;
data['bank_name'] = this.bankName; data['bank_name'] = bankName;
data['bank_beneficiary_name'] = this.bankBeneficiaryName; data['bank_beneficiary_name'] = bankBeneficiaryName;
data['bank_account_no'] = this.bankAccountNo; data['bank_account_no'] = bankAccountNo;
data['bank_ifsc_code'] = this.bankIfscCode; data['bank_ifsc_code'] = bankIfscCode;
data['note'] = this.note; data['note'] = note;
data['entered_emp_id'] = this.enteredEmpId; data['entered_emp_id'] = enteredEmpId;
data['is_exists'] = this.isExists; data['is_exists'] = isExists;
data['created_datetime'] = this.createdDatetime; data['created_datetime'] = createdDatetime;
data['updated_datetime'] = this.updatedDatetime; data['updated_datetime'] = updatedDatetime;
data['tpc_agent_id'] = this.tpcAgentId; data['tpc_agent_id'] = tpcAgentId;
data['entered_employee'] = this.enteredEmployee; data['entered_employee'] = enteredEmployee;
return data; return data;
} }
} }
...@@ -142,31 +145,32 @@ class TpcRequestedAmounts { ...@@ -142,31 +145,32 @@ class TpcRequestedAmounts {
String? requestedTpcAmount; String? requestedTpcAmount;
String? totalAmount; String? totalAmount;
TpcRequestedAmounts( TpcRequestedAmounts({
{this.id, this.id,
this.name, this.name,
this.mobileNumber, this.mobileNumber,
this.idProofDirFilePath, this.idProofDirFilePath,
this.idProofViewFileName, this.idProofViewFileName,
this.bankName, this.bankName,
this.bankBeneficiaryName, this.bankBeneficiaryName,
this.bankAccountNo, this.bankAccountNo,
this.bankIfscCode, this.bankIfscCode,
this.note, this.note,
this.enteredEmpId, this.enteredEmpId,
this.isExists, this.isExists,
this.createdDatetime, this.createdDatetime,
this.updatedDatetime, this.updatedDatetime,
this.tpcAgentId, this.tpcAgentId,
this.customerName, this.customerName,
this.ename, this.ename,
this.orderId, this.orderId,
this.orderNumber, this.orderNumber,
this.level1TpcApprovedAmount, this.level1TpcApprovedAmount,
this.level2TpcApprovedAmount, this.level2TpcApprovedAmount,
this.tpcStatus, this.tpcStatus,
this.requestedTpcAmount, this.requestedTpcAmount,
this.totalAmount}); this.totalAmount,
});
TpcRequestedAmounts.fromJson(Map<String, dynamic> json) { TpcRequestedAmounts.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];
...@@ -196,31 +200,31 @@ class TpcRequestedAmounts { ...@@ -196,31 +200,31 @@ class TpcRequestedAmounts {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['name'] = this.name; data['name'] = name;
data['mobile_number'] = this.mobileNumber; data['mobile_number'] = mobileNumber;
data['id_proof_dir_file_path'] = this.idProofDirFilePath; data['id_proof_dir_file_path'] = idProofDirFilePath;
data['id_proof_view_file_name'] = this.idProofViewFileName; data['id_proof_view_file_name'] = idProofViewFileName;
data['bank_name'] = this.bankName; data['bank_name'] = bankName;
data['bank_beneficiary_name'] = this.bankBeneficiaryName; data['bank_beneficiary_name'] = bankBeneficiaryName;
data['bank_account_no'] = this.bankAccountNo; data['bank_account_no'] = bankAccountNo;
data['bank_ifsc_code'] = this.bankIfscCode; data['bank_ifsc_code'] = bankIfscCode;
data['note'] = this.note; data['note'] = note;
data['entered_emp_id'] = this.enteredEmpId; data['entered_emp_id'] = enteredEmpId;
data['is_exists'] = this.isExists; data['is_exists'] = isExists;
data['created_datetime'] = this.createdDatetime; data['created_datetime'] = createdDatetime;
data['updated_datetime'] = this.updatedDatetime; data['updated_datetime'] = updatedDatetime;
data['tpc_agent_id'] = this.tpcAgentId; data['tpc_agent_id'] = tpcAgentId;
data['customer_name'] = this.customerName; data['customer_name'] = customerName;
data['ename'] = this.ename; data['ename'] = ename;
data['order_id'] = this.orderId; data['order_id'] = orderId;
data['order_number'] = this.orderNumber; data['order_number'] = orderNumber;
data['level1_tpc_approved_amount'] = this.level1TpcApprovedAmount; data['level1_tpc_approved_amount'] = level1TpcApprovedAmount;
data['level2_tpc_approved_amount'] = this.level2TpcApprovedAmount; data['level2_tpc_approved_amount'] = level2TpcApprovedAmount;
data['tpc_status'] = this.tpcStatus; data['tpc_status'] = tpcStatus;
data['requested_tpc_amount'] = this.requestedTpcAmount; data['requested_tpc_amount'] = requestedTpcAmount;
data['total_amount'] = this.totalAmount; data['total_amount'] = totalAmount;
return data; return data;
} }
} }
...@@ -9,7 +9,7 @@ class TPCListResponse { ...@@ -9,7 +9,7 @@ class TPCListResponse {
if (json['tpc_agent_list'] != null) { if (json['tpc_agent_list'] != null) {
tpcAgentList = <TpcAgentList>[]; tpcAgentList = <TpcAgentList>[];
json['tpc_agent_list'].forEach((v) { json['tpc_agent_list'].forEach((v) {
tpcAgentList!.add(new TpcAgentList.fromJson(v)); tpcAgentList!.add(TpcAgentList.fromJson(v));
}); });
} }
error = json['error']; error = json['error'];
...@@ -17,13 +17,12 @@ class TPCListResponse { ...@@ -17,13 +17,12 @@ class TPCListResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
if (this.tpcAgentList != null) { if (tpcAgentList != null) {
data['tpc_agent_list'] = data['tpc_agent_list'] = tpcAgentList!.map((v) => v.toJson()).toList();
this.tpcAgentList!.map((v) => v.toJson()).toList();
} }
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -47,24 +46,25 @@ class TpcAgentList { ...@@ -47,24 +46,25 @@ class TpcAgentList {
String? enteredEmpName; String? enteredEmpName;
String? issuedAmount; String? issuedAmount;
TpcAgentList( TpcAgentList({
{this.id, this.id,
this.name, this.name,
this.mobileNumber, this.mobileNumber,
this.idProofDirFilePath, this.idProofDirFilePath,
this.idProofViewFileName, this.idProofViewFileName,
this.bankName, this.bankName,
this.bankBeneficiaryName, this.bankBeneficiaryName,
this.bankAccountNo, this.bankAccountNo,
this.bankIfscCode, this.bankIfscCode,
this.note, this.note,
this.enteredEmpId, this.enteredEmpId,
this.isExists, this.isExists,
this.createdDatetime, this.createdDatetime,
this.updatedDatetime, this.updatedDatetime,
this.tpcAgentId, this.tpcAgentId,
this.enteredEmpName, this.enteredEmpName,
this.issuedAmount}); this.issuedAmount,
});
TpcAgentList.fromJson(Map<String, dynamic> json) { TpcAgentList.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];
...@@ -87,24 +87,24 @@ class TpcAgentList { ...@@ -87,24 +87,24 @@ class TpcAgentList {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['name'] = this.name; data['name'] = name;
data['mobile_number'] = this.mobileNumber; data['mobile_number'] = mobileNumber;
data['id_proof_dir_file_path'] = this.idProofDirFilePath; data['id_proof_dir_file_path'] = idProofDirFilePath;
data['id_proof_view_file_name'] = this.idProofViewFileName; data['id_proof_view_file_name'] = idProofViewFileName;
data['bank_name'] = this.bankName; data['bank_name'] = bankName;
data['bank_beneficiary_name'] = this.bankBeneficiaryName; data['bank_beneficiary_name'] = bankBeneficiaryName;
data['bank_account_no'] = this.bankAccountNo; data['bank_account_no'] = bankAccountNo;
data['bank_ifsc_code'] = this.bankIfscCode; data['bank_ifsc_code'] = bankIfscCode;
data['note'] = this.note; data['note'] = note;
data['entered_emp_id'] = this.enteredEmpId; data['entered_emp_id'] = enteredEmpId;
data['is_exists'] = this.isExists; data['is_exists'] = isExists;
data['created_datetime'] = this.createdDatetime; data['created_datetime'] = createdDatetime;
data['updated_datetime'] = this.updatedDatetime; data['updated_datetime'] = updatedDatetime;
data['tpc_agent_id'] = this.tpcAgentId; data['tpc_agent_id'] = tpcAgentId;
data['entered_emp_name'] = this.enteredEmpName; data['entered_emp_name'] = enteredEmpName;
data['issued_amount'] = this.issuedAmount; data['issued_amount'] = issuedAmount;
return data; return data;
} }
} }
...@@ -3,24 +3,28 @@ class addOrderAccontDetailsResponse { ...@@ -3,24 +3,28 @@ class addOrderAccontDetailsResponse {
String? error; String? error;
String? message; String? message;
addOrderAccontDetailsResponse( addOrderAccontDetailsResponse({
{this.accountDetails, this.error, this.message}); this.accountDetails,
this.error,
this.message,
});
addOrderAccontDetailsResponse.fromJson(Map<String, dynamic> json) { addOrderAccontDetailsResponse.fromJson(Map<String, dynamic> json) {
accountDetails = json['account_details'] != null accountDetails =
? new AccountDetails.fromJson(json['account_details']) json['account_details'] != null
: null; ? AccountDetails.fromJson(json['account_details'])
: null;
error = json['error']; error = json['error'];
message = json['message']; message = json['message'];
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
if (this.accountDetails != null) { if (accountDetails != null) {
data['account_details'] = this.accountDetails!.toJson(); data['account_details'] = accountDetails!.toJson();
} }
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -47,27 +51,28 @@ class AccountDetails { ...@@ -47,27 +51,28 @@ class AccountDetails {
String? createdDatetime; String? createdDatetime;
String? updatedDatetime; String? updatedDatetime;
AccountDetails( AccountDetails({
{this.id, this.id,
this.tempId, this.tempId,
this.ownerId, this.ownerId,
this.accManagerId, this.accManagerId,
this.name, this.name,
this.salutationName, this.salutationName,
this.subLocality, this.subLocality,
this.district, this.district,
this.state, this.state,
this.pincode, this.pincode,
this.address, this.address,
this.date, this.date,
this.source, this.source,
this.reference, this.reference,
this.segment, this.segment,
this.team, this.team,
this.gstNumber, this.gstNumber,
this.isExists, this.isExists,
this.createdDatetime, this.createdDatetime,
this.updatedDatetime}); this.updatedDatetime,
});
AccountDetails.fromJson(Map<String, dynamic> json) { AccountDetails.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];
...@@ -93,27 +98,27 @@ class AccountDetails { ...@@ -93,27 +98,27 @@ class AccountDetails {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['temp_id'] = this.tempId; data['temp_id'] = tempId;
data['owner_id'] = this.ownerId; data['owner_id'] = ownerId;
data['acc_manager_id'] = this.accManagerId; data['acc_manager_id'] = accManagerId;
data['name'] = this.name; data['name'] = name;
data['salutation_name'] = this.salutationName; data['salutation_name'] = salutationName;
data['sub_locality'] = this.subLocality; data['sub_locality'] = subLocality;
data['district'] = this.district; data['district'] = district;
data['state'] = this.state; data['state'] = state;
data['pincode'] = this.pincode; data['pincode'] = pincode;
data['address'] = this.address; data['address'] = address;
data['date'] = this.date; data['date'] = date;
data['source'] = this.source; data['source'] = source;
data['reference'] = this.reference; data['reference'] = reference;
data['segment'] = this.segment; data['segment'] = segment;
data['team'] = this.team; data['team'] = team;
data['gst_number'] = this.gstNumber; data['gst_number'] = gstNumber;
data['is_exists'] = this.isExists; data['is_exists'] = isExists;
data['created_datetime'] = this.createdDatetime; data['created_datetime'] = createdDatetime;
data['updated_datetime'] = this.updatedDatetime; data['updated_datetime'] = updatedDatetime;
return data; return data;
} }
} }
...@@ -4,8 +4,12 @@ class addOrderPaymentViewResponse { ...@@ -4,8 +4,12 @@ class addOrderPaymentViewResponse {
String? error; String? error;
String? message; String? message;
addOrderPaymentViewResponse( addOrderPaymentViewResponse({
{this.paymentMode, this.description, this.error, this.message}); this.paymentMode,
this.description,
this.error,
this.message,
});
addOrderPaymentViewResponse.fromJson(Map<String, dynamic> json) { addOrderPaymentViewResponse.fromJson(Map<String, dynamic> json) {
paymentMode = json['payment_mode'].cast<String>(); paymentMode = json['payment_mode'].cast<String>();
...@@ -15,11 +19,11 @@ class addOrderPaymentViewResponse { ...@@ -15,11 +19,11 @@ class addOrderPaymentViewResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['payment_mode'] = this.paymentMode; data['payment_mode'] = paymentMode;
data['description'] = this.description; data['description'] = description;
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -9,7 +9,7 @@ class addOrderTpcAgentListResponse { ...@@ -9,7 +9,7 @@ class addOrderTpcAgentListResponse {
if (json['tpc_list'] != null) { if (json['tpc_list'] != null) {
tpcList = <TpcList>[]; tpcList = <TpcList>[];
json['tpc_list'].forEach((v) { json['tpc_list'].forEach((v) {
tpcList!.add(new TpcList.fromJson(v)); tpcList!.add(TpcList.fromJson(v));
}); });
} }
error = json['error']; error = json['error'];
...@@ -17,12 +17,12 @@ class addOrderTpcAgentListResponse { ...@@ -17,12 +17,12 @@ class addOrderTpcAgentListResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
if (this.tpcList != null) { if (tpcList != null) {
data['tpc_list'] = this.tpcList!.map((v) => v.toJson()).toList(); data['tpc_list'] = tpcList!.map((v) => v.toJson()).toList();
} }
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -39,9 +39,9 @@ class TpcList { ...@@ -39,9 +39,9 @@ class TpcList {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['text'] = this.text; data['text'] = text;
return data; return data;
} }
} }
...@@ -13,10 +13,10 @@ class CommonResponse { ...@@ -13,10 +13,10 @@ class CommonResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
data['session_exists'] = this.sessionExists; data['session_exists'] = sessionExists;
return data; return data;
} }
} }
...@@ -6,46 +6,49 @@ class orderDashboardResponse { ...@@ -6,46 +6,49 @@ class orderDashboardResponse {
String? error; String? error;
String? message; String? message;
orderDashboardResponse( orderDashboardResponse({
{this.ordergain, this.ordergain,
this.dispatches, this.dispatches,
this.pendingTasks, this.pendingTasks,
this.quote, this.quote,
this.error, this.error,
this.message}); this.message,
});
orderDashboardResponse.fromJson(Map<String, dynamic> json) { orderDashboardResponse.fromJson(Map<String, dynamic> json) {
ordergain = json['ordergain'] != null ordergain =
? new Ordergain.fromJson(json['ordergain']) json['ordergain'] != null
: null; ? Ordergain.fromJson(json['ordergain'])
dispatches = json['dispatches'] != null : null;
? new Ordergain.fromJson(json['dispatches']) dispatches =
: null; json['dispatches'] != null
pendingTasks = json['pending_tasks'] != null ? Ordergain.fromJson(json['dispatches'])
? new Ordergain.fromJson(json['pending_tasks']) : null;
: null; pendingTasks =
quote = json['pending_tasks'] != null
json['quote'] != null ? new Ordergain.fromJson(json['quote']) : null; ? Ordergain.fromJson(json['pending_tasks'])
: null;
quote = json['quote'] != null ? Ordergain.fromJson(json['quote']) : null;
error = json['error']; error = json['error'];
message = json['message']; message = json['message'];
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
if (this.ordergain != null) { if (ordergain != null) {
data['ordergain'] = this.ordergain!.toJson(); data['ordergain'] = ordergain!.toJson();
} }
if (this.dispatches != null) { if (dispatches != null) {
data['dispatches'] = this.dispatches!.toJson(); data['dispatches'] = dispatches!.toJson();
} }
if (this.pendingTasks != null) { if (pendingTasks != null) {
data['pending_tasks'] = this.pendingTasks!.toJson(); data['pending_tasks'] = pendingTasks!.toJson();
} }
if (this.quote != null) { if (quote != null) {
data['quote'] = this.quote!.toJson(); data['quote'] = quote!.toJson();
} }
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -58,15 +61,14 @@ class Ordergain { ...@@ -58,15 +61,14 @@ class Ordergain {
Ordergain.fromJson(Map<String, dynamic> json) { Ordergain.fromJson(Map<String, dynamic> json) {
count = json['count']; count = json['count'];
filter = filter = json['filter'] != null ? Filter.fromJson(json['filter']) : null;
json['filter'] != null ? new Filter.fromJson(json['filter']) : null;
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['count'] = this.count; data['count'] = count;
if (this.filter != null) { if (filter != null) {
data['filter'] = this.filter!.toJson(); data['filter'] = filter!.toJson();
} }
return data; return data;
} }
...@@ -90,12 +92,12 @@ class Filter { ...@@ -90,12 +92,12 @@ class Filter {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['page_name'] = this.pageName; data['page_name'] = pageName;
data['mode'] = this.mode; data['mode'] = mode;
data['open_status'] = this.openStatus; data['open_status'] = openStatus;
data['status'] = this.status; data['status'] = status;
return data; return data;
} }
} }
...@@ -9,7 +9,7 @@ class orderPendingTasksListResponse { ...@@ -9,7 +9,7 @@ class orderPendingTasksListResponse {
if (json['pending_tasks'] != null) { if (json['pending_tasks'] != null) {
pendingTasks = <PendingTasks>[]; pendingTasks = <PendingTasks>[];
json['pending_tasks'].forEach((v) { json['pending_tasks'].forEach((v) {
pendingTasks!.add(new PendingTasks.fromJson(v)); pendingTasks!.add(PendingTasks.fromJson(v));
}); });
} }
error = json['error']; error = json['error'];
...@@ -17,13 +17,12 @@ class orderPendingTasksListResponse { ...@@ -17,13 +17,12 @@ class orderPendingTasksListResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
if (this.pendingTasks != null) { if (pendingTasks != null) {
data['pending_tasks'] = data['pending_tasks'] = pendingTasks!.map((v) => v.toJson()).toList();
this.pendingTasks!.map((v) => v.toJson()).toList();
} }
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -39,16 +38,17 @@ class PendingTasks { ...@@ -39,16 +38,17 @@ class PendingTasks {
String? lempid; String? lempid;
String? aid; String? aid;
PendingTasks( PendingTasks({
{this.conmob, this.conmob,
this.aname, this.aname,
this.appdate, this.appdate,
this.atype, this.atype,
this.anote, this.anote,
this.leadid, this.leadid,
this.lstatus, this.lstatus,
this.lempid, this.lempid,
this.aid}); this.aid,
});
PendingTasks.fromJson(Map<String, dynamic> json) { PendingTasks.fromJson(Map<String, dynamic> json) {
conmob = json['conmob']; conmob = json['conmob'];
...@@ -63,16 +63,16 @@ class PendingTasks { ...@@ -63,16 +63,16 @@ class PendingTasks {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['conmob'] = this.conmob; data['conmob'] = conmob;
data['aname'] = this.aname; data['aname'] = aname;
data['appdate'] = this.appdate; data['appdate'] = appdate;
data['atype'] = this.atype; data['atype'] = atype;
data['anote'] = this.anote; data['anote'] = anote;
data['leadid'] = this.leadid; data['leadid'] = leadid;
data['lstatus'] = this.lstatus; data['lstatus'] = lstatus;
data['lempid'] = this.lempid; data['lempid'] = lempid;
data['aid'] = this.aid; data['aid'] = aid;
return data; return data;
} }
} }
...@@ -3,28 +3,31 @@ class ordersAccessiblePagesResponse { ...@@ -3,28 +3,31 @@ class ordersAccessiblePagesResponse {
List<PagesAccessible>? pagesAccessible; List<PagesAccessible>? pagesAccessible;
String? message; String? message;
ordersAccessiblePagesResponse( ordersAccessiblePagesResponse({
{this.error, this.pagesAccessible, this.message}); this.error,
this.pagesAccessible,
this.message,
});
ordersAccessiblePagesResponse.fromJson(Map<String, dynamic> json) { ordersAccessiblePagesResponse.fromJson(Map<String, dynamic> json) {
error = json['error']; error = json['error'];
if (json['pages_accessible'] != null) { if (json['pages_accessible'] != null) {
pagesAccessible = <PagesAccessible>[]; pagesAccessible = <PagesAccessible>[];
json['pages_accessible'].forEach((v) { json['pages_accessible'].forEach((v) {
pagesAccessible!.add(new PagesAccessible.fromJson(v)); pagesAccessible!.add(PagesAccessible.fromJson(v));
}); });
} }
message = json['message']; message = json['message'];
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['error'] = this.error; data['error'] = error;
if (this.pagesAccessible != null) { if (pagesAccessible != null) {
data['pages_accessible'] = data['pages_accessible'] =
this.pagesAccessible!.map((v) => v.toJson()).toList(); pagesAccessible!.map((v) => v.toJson()).toList();
} }
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -43,10 +46,10 @@ class PagesAccessible { ...@@ -43,10 +46,10 @@ class PagesAccessible {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['page_name'] = this.pageName; data['page_name'] = pageName;
data['mode'] = this.mode; data['mode'] = mode;
return data; return data;
} }
} }
...@@ -6,34 +6,36 @@ class ordersDetailsByModeResponse { ...@@ -6,34 +6,36 @@ class ordersDetailsByModeResponse {
String? error; String? error;
String? message; String? message;
ordersDetailsByModeResponse( ordersDetailsByModeResponse({
{this.orderDetails, this.orderDetails,
this.products, this.products,
this.feedbackHistory, this.feedbackHistory,
this.paymentHistory, this.paymentHistory,
this.error, this.error,
this.message}); this.message,
});
ordersDetailsByModeResponse.fromJson(Map<String, dynamic> json) { ordersDetailsByModeResponse.fromJson(Map<String, dynamic> json) {
orderDetails = json['order_details'] != null orderDetails =
? new OrderDetails.fromJson(json['order_details']) json['order_details'] != null
: null; ? OrderDetails.fromJson(json['order_details'])
: null;
if (json['products'] != null) { if (json['products'] != null) {
products = <Products>[]; products = <Products>[];
json['products'].forEach((v) { json['products'].forEach((v) {
products!.add(new Products.fromJson(v)); products!.add(Products.fromJson(v));
}); });
} }
if (json['feedback_history'] != null) { if (json['feedback_history'] != null) {
feedbackHistory = <FeedbackHistory>[]; feedbackHistory = <FeedbackHistory>[];
json['feedback_history'].forEach((v) { json['feedback_history'].forEach((v) {
feedbackHistory!.add(new FeedbackHistory.fromJson(v)); feedbackHistory!.add(FeedbackHistory.fromJson(v));
}); });
} }
if (json['payment_history'] != null) { if (json['payment_history'] != null) {
paymentHistory = <PaymentHistory>[]; paymentHistory = <PaymentHistory>[];
json['payment_history'].forEach((v) { json['payment_history'].forEach((v) {
paymentHistory!.add(new PaymentHistory.fromJson(v)); paymentHistory!.add(PaymentHistory.fromJson(v));
}); });
} }
error = json['error']; error = json['error'];
...@@ -41,23 +43,22 @@ class ordersDetailsByModeResponse { ...@@ -41,23 +43,22 @@ class ordersDetailsByModeResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
if (this.orderDetails != null) { if (orderDetails != null) {
data['order_details'] = this.orderDetails!.toJson(); data['order_details'] = orderDetails!.toJson();
} }
if (this.products != null) { if (products != null) {
data['products'] = this.products!.map((v) => v.toJson()).toList(); data['products'] = products!.map((v) => v.toJson()).toList();
} }
if (this.feedbackHistory != null) { if (feedbackHistory != null) {
data['feedback_history'] = data['feedback_history'] =
this.feedbackHistory!.map((v) => v.toJson()).toList(); feedbackHistory!.map((v) => v.toJson()).toList();
} }
if (this.paymentHistory != null) { if (paymentHistory != null) {
data['payment_history'] = data['payment_history'] = paymentHistory!.map((v) => v.toJson()).toList();
this.paymentHistory!.map((v) => v.toJson()).toList();
} }
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -126,69 +127,70 @@ class OrderDetails { ...@@ -126,69 +127,70 @@ class OrderDetails {
String? salesPersonEmpName; String? salesPersonEmpName;
String? tpcaAgentName; String? tpcaAgentName;
OrderDetails( OrderDetails({
{ this.id, this.id,
this.orderNumber, this.orderNumber,
this.orderNumberHash, this.orderNumberHash,
this.balanceAmount, this.balanceAmount,
this.accId, this.accId,
this.refType, this.refType,
this.refId, this.refId,
this.salesPersonEmpId, this.salesPersonEmpId,
this.enteredEmpId, this.enteredEmpId,
this.dispatchStateId, this.dispatchStateId,
this.dispatchDistrictId, this.dispatchDistrictId,
this.dispatchSubLocationId, this.dispatchSubLocationId,
this.dispatchPincode, this.dispatchPincode,
this.dispatchAddress, this.dispatchAddress,
this.basicAmount, this.basicAmount,
this.cgstAmount, this.cgstAmount,
this.sgstAmount, this.sgstAmount,
this.igstAmount, this.igstAmount,
this.paidAmount, this.paidAmount,
this.totalAmount, this.totalAmount,
this.status, this.status,
this.orderReceivedDate, this.orderReceivedDate,
this.scheduledDispatchDate, this.scheduledDispatchDate,
this.otp, this.otp,
this.note, this.note,
this.poViewFileName, this.poViewFileName,
this.poDirFilePath, this.poDirFilePath,
this.unloadingScope, this.unloadingScope,
this.freightScope, this.freightScope,
this.erectionScope, this.erectionScope,
this.saleOrderNumber, this.saleOrderNumber,
this.invoiceNumber, this.invoiceNumber,
this.vehicleNumber, this.vehicleNumber,
this.driverName, this.driverName,
this.driverMobileNumber, this.driverMobileNumber,
this.tpcApplicable, this.tpcApplicable,
this.requestedTpcAmount, this.requestedTpcAmount,
this.level1TpcApprovedAmount, this.level1TpcApprovedAmount,
this.level2TpcApprovedAmount, this.level2TpcApprovedAmount,
this.tpcPaymentMode, this.tpcPaymentMode,
this.tpcPaymentReferenceNo, this.tpcPaymentReferenceNo,
this.tpcPaymentAttachmentDirFilePath, this.tpcPaymentAttachmentDirFilePath,
this.tpcPaymentAttachementViewFileName, this.tpcPaymentAttachementViewFileName,
this.tpcStatus, this.tpcStatus,
this.tpcAgentId, this.tpcAgentId,
this.isExist, this.isExist,
this.createdDatetime, this.createdDatetime,
this.updatedDatetime, this.updatedDatetime,
this.accountName, this.accountName,
this.gstNumber, this.gstNumber,
this.billingAddress, this.billingAddress,
this.billingDistrict, this.billingDistrict,
this.billingState, this.billingState,
this.billingSubLocality, this.billingSubLocality,
this.billingPincode, this.billingPincode,
this.stateName, this.stateName,
this.districtName, this.districtName,
this.subLocationName, this.subLocationName,
this.adjustedAmount, this.adjustedAmount,
this.enteredEmpName, this.enteredEmpName,
this.salesPersonEmpName, this.salesPersonEmpName,
this.tpcaAgentName}); this.tpcaAgentName,
});
OrderDetails.fromJson(Map<String, dynamic> json) { OrderDetails.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];
...@@ -233,9 +235,9 @@ class OrderDetails { ...@@ -233,9 +235,9 @@ class OrderDetails {
tpcPaymentMode = json['tpc_payment_mode']; tpcPaymentMode = json['tpc_payment_mode'];
tpcPaymentReferenceNo = json['tpc_payment_reference_no']; tpcPaymentReferenceNo = json['tpc_payment_reference_no'];
tpcPaymentAttachmentDirFilePath = tpcPaymentAttachmentDirFilePath =
json['tpc_payment_attachment_dir_file_path']; json['tpc_payment_attachment_dir_file_path'];
tpcPaymentAttachementViewFileName = tpcPaymentAttachementViewFileName =
json['tpc_payment_attachement_view_file_name']; json['tpc_payment_attachement_view_file_name'];
tpcStatus = json['tpc_status']; tpcStatus = json['tpc_status'];
tpcAgentId = json['tpc_agent_id']; tpcAgentId = json['tpc_agent_id'];
isExist = json['is_exist']; isExist = json['is_exist'];
...@@ -258,71 +260,71 @@ class OrderDetails { ...@@ -258,71 +260,71 @@ class OrderDetails {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['order_number'] = this.orderNumber; data['order_number'] = orderNumber;
data['order_number_hash'] = this.orderNumberHash; data['order_number_hash'] = orderNumberHash;
data['balance_amount'] = this.balanceAmount; data['balance_amount'] = balanceAmount;
data['acc_id'] = this.accId; data['acc_id'] = accId;
data['ref_type'] = this.refType; data['ref_type'] = refType;
data['ref_id'] = this.refId; data['ref_id'] = refId;
data['sales_person_emp_id'] = this.salesPersonEmpId; data['sales_person_emp_id'] = salesPersonEmpId;
data['entered_emp_id'] = this.enteredEmpId; data['entered_emp_id'] = enteredEmpId;
data['dispatch_state_id'] = this.dispatchStateId; data['dispatch_state_id'] = dispatchStateId;
data['dispatch_district_id'] = this.dispatchDistrictId; data['dispatch_district_id'] = dispatchDistrictId;
data['dispatch_sub_location_id'] = this.dispatchSubLocationId; data['dispatch_sub_location_id'] = dispatchSubLocationId;
data['dispatch_pincode'] = this.dispatchPincode; data['dispatch_pincode'] = dispatchPincode;
data['dispatch_address'] = this.dispatchAddress; data['dispatch_address'] = dispatchAddress;
data['basic_amount'] = this.basicAmount; data['basic_amount'] = basicAmount;
data['cgst_amount'] = this.cgstAmount; data['cgst_amount'] = cgstAmount;
data['sgst_amount'] = this.sgstAmount; data['sgst_amount'] = sgstAmount;
data['igst_amount'] = this.igstAmount; data['igst_amount'] = igstAmount;
data['paid_amount'] = this.paidAmount; data['paid_amount'] = paidAmount;
data['total_amount'] = this.totalAmount; data['total_amount'] = totalAmount;
data['status'] = this.status; data['status'] = status;
data['order_received_date'] = this.orderReceivedDate; data['order_received_date'] = orderReceivedDate;
data['scheduled_dispatch_date'] = this.scheduledDispatchDate; data['scheduled_dispatch_date'] = scheduledDispatchDate;
data['otp'] = this.otp; data['otp'] = otp;
data['note'] = this.note; data['note'] = note;
data['po_view_file_name'] = this.poViewFileName; data['po_view_file_name'] = poViewFileName;
data['po_dir_file_path'] = this.poDirFilePath; data['po_dir_file_path'] = poDirFilePath;
data['unloading_scope'] = this.unloadingScope; data['unloading_scope'] = unloadingScope;
data['freight_scope'] = this.freightScope; data['freight_scope'] = freightScope;
data['erection_scope'] = this.erectionScope; data['erection_scope'] = erectionScope;
data['sale_order_number'] = this.saleOrderNumber; data['sale_order_number'] = saleOrderNumber;
data['invoice_number'] = this.invoiceNumber; data['invoice_number'] = invoiceNumber;
data['vehicle_number'] = this.vehicleNumber; data['vehicle_number'] = vehicleNumber;
data['driver_name'] = this.driverName; data['driver_name'] = driverName;
data['driver_mobile_number'] = this.driverMobileNumber; data['driver_mobile_number'] = driverMobileNumber;
data['tpc_applicable'] = this.tpcApplicable; data['tpc_applicable'] = tpcApplicable;
data['requested_tpc_amount'] = this.requestedTpcAmount; data['requested_tpc_amount'] = requestedTpcAmount;
data['level1_tpc_approved_amount'] = this.level1TpcApprovedAmount; data['level1_tpc_approved_amount'] = level1TpcApprovedAmount;
data['level2_tpc_approved_amount'] = this.level2TpcApprovedAmount; data['level2_tpc_approved_amount'] = level2TpcApprovedAmount;
data['tpc_payment_mode'] = this.tpcPaymentMode; data['tpc_payment_mode'] = tpcPaymentMode;
data['tpc_payment_reference_no'] = this.tpcPaymentReferenceNo; data['tpc_payment_reference_no'] = tpcPaymentReferenceNo;
data['tpc_payment_attachment_dir_file_path'] = data['tpc_payment_attachment_dir_file_path'] =
this.tpcPaymentAttachmentDirFilePath; tpcPaymentAttachmentDirFilePath;
data['tpc_payment_attachement_view_file_name'] = data['tpc_payment_attachement_view_file_name'] =
this.tpcPaymentAttachementViewFileName; tpcPaymentAttachementViewFileName;
data['tpc_status'] = this.tpcStatus; data['tpc_status'] = tpcStatus;
data['tpc_agent_id'] = this.tpcAgentId; data['tpc_agent_id'] = tpcAgentId;
data['is_exist'] = this.isExist; data['is_exist'] = isExist;
data['created_datetime'] = this.createdDatetime; data['created_datetime'] = createdDatetime;
data['updated_datetime'] = this.updatedDatetime; data['updated_datetime'] = updatedDatetime;
data['account_name'] = this.accountName; data['account_name'] = accountName;
data['gst_number'] = this.gstNumber; data['gst_number'] = gstNumber;
data['billing_address'] = this.billingAddress; data['billing_address'] = billingAddress;
data['billing_district'] = this.billingDistrict; data['billing_district'] = billingDistrict;
data['billing_state'] = this.billingState; data['billing_state'] = billingState;
data['billing_sub_locality'] = this.billingSubLocality; data['billing_sub_locality'] = billingSubLocality;
data['billing_pincode'] = this.billingPincode; data['billing_pincode'] = billingPincode;
data['state_name'] = this.stateName; data['state_name'] = stateName;
data['district_name'] = this.districtName; data['district_name'] = districtName;
data['sub_location_name'] = this.subLocationName; data['sub_location_name'] = subLocationName;
data['adjusted_amount'] = this.adjustedAmount; data['adjusted_amount'] = adjustedAmount;
data['entered_emp_name'] = this.enteredEmpName; data['entered_emp_name'] = enteredEmpName;
data['sales_person_emp_name'] = this.salesPersonEmpName; data['sales_person_emp_name'] = salesPersonEmpName;
data['tpca_agent_name'] = this.tpcaAgentName; data['tpca_agent_name'] = tpcaAgentName;
return data; return data;
} }
} }
...@@ -346,24 +348,25 @@ class Products { ...@@ -346,24 +348,25 @@ class Products {
String? sgstAmount; String? sgstAmount;
String? igstAmount; String? igstAmount;
Products( Products({
{this.id, this.id,
this.orderId, this.orderId,
this.productId, this.productId,
this.pdiId, this.pdiId,
this.qty, this.qty,
this.unitPrice, this.unitPrice,
this.cgstPercentage, this.cgstPercentage,
this.sgstPercentage, this.sgstPercentage,
this.igstPercentage, this.igstPercentage,
this.totalPrice, this.totalPrice,
this.isExist, this.isExist,
this.createdDatetime, this.createdDatetime,
this.updatedDatetime, this.updatedDatetime,
this.productName, this.productName,
this.cgstAmount, this.cgstAmount,
this.sgstAmount, this.sgstAmount,
this.igstAmount}); this.igstAmount,
});
Products.fromJson(Map<String, dynamic> json) { Products.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];
...@@ -386,24 +389,24 @@ class Products { ...@@ -386,24 +389,24 @@ class Products {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['order_id'] = this.orderId; data['order_id'] = orderId;
data['product_id'] = this.productId; data['product_id'] = productId;
data['pdi_id'] = this.pdiId; data['pdi_id'] = pdiId;
data['qty'] = this.qty; data['qty'] = qty;
data['unit_price'] = this.unitPrice; data['unit_price'] = unitPrice;
data['cgst_percentage'] = this.cgstPercentage; data['cgst_percentage'] = cgstPercentage;
data['sgst_percentage'] = this.sgstPercentage; data['sgst_percentage'] = sgstPercentage;
data['igst_percentage'] = this.igstPercentage; data['igst_percentage'] = igstPercentage;
data['total_price'] = this.totalPrice; data['total_price'] = totalPrice;
data['is_exist'] = this.isExist; data['is_exist'] = isExist;
data['created_datetime'] = this.createdDatetime; data['created_datetime'] = createdDatetime;
data['updated_datetime'] = this.updatedDatetime; data['updated_datetime'] = updatedDatetime;
data['product_name'] = this.productName; data['product_name'] = productName;
data['cgst_amount'] = this.cgstAmount; data['cgst_amount'] = cgstAmount;
data['sgst_amount'] = this.sgstAmount; data['sgst_amount'] = sgstAmount;
data['igst_amount'] = this.igstAmount; data['igst_amount'] = igstAmount;
return data; return data;
} }
} }
...@@ -421,18 +424,19 @@ class FeedbackHistory { ...@@ -421,18 +424,19 @@ class FeedbackHistory {
String? updatedDatetime; String? updatedDatetime;
String? attachImage; String? attachImage;
FeedbackHistory( FeedbackHistory({
{this.employeNaem, this.employeNaem,
this.feedback, this.feedback,
this.createdDatetime, this.createdDatetime,
this.status, this.status,
this.feedbackId, this.feedbackId,
this.id, this.id,
this.attachmentDirFilePath, this.attachmentDirFilePath,
this.attachmentViewFileName, this.attachmentViewFileName,
this.isExists, this.isExists,
this.updatedDatetime, this.updatedDatetime,
this.attachImage}); this.attachImage,
});
FeedbackHistory.fromJson(Map<String, dynamic> json) { FeedbackHistory.fromJson(Map<String, dynamic> json) {
employeNaem = json['employe_naem']; employeNaem = json['employe_naem'];
...@@ -449,18 +453,18 @@ class FeedbackHistory { ...@@ -449,18 +453,18 @@ class FeedbackHistory {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = Map<String, dynamic>();
data['employe_naem'] = this.employeNaem; data['employe_naem'] = employeNaem;
data['feedback'] = this.feedback; data['feedback'] = feedback;
data['created_datetime'] = this.createdDatetime; data['created_datetime'] = createdDatetime;
data['status'] = this.status; data['status'] = status;
data['feedback_id'] = this.feedbackId; data['feedback_id'] = feedbackId;
data['id'] = this.id; data['id'] = id;
data['attachment_dir_file_path'] = this.attachmentDirFilePath; data['attachment_dir_file_path'] = attachmentDirFilePath;
data['attachment_view_file_name'] = this.attachmentViewFileName; data['attachment_view_file_name'] = attachmentViewFileName;
data['is_exists'] = this.isExists; data['is_exists'] = isExists;
data['updated_datetime'] = this.updatedDatetime; data['updated_datetime'] = updatedDatetime;
data['attach_image'] = this.attachImage; data['attach_image'] = attachImage;
return data; return data;
} }
} }
...@@ -483,23 +487,24 @@ class PaymentHistory { ...@@ -483,23 +487,24 @@ class PaymentHistory {
String? datetime; String? datetime;
String? status; String? status;
PaymentHistory( PaymentHistory({
{this.paymentId, this.paymentId,
this.ename, this.ename,
this.accountName, this.accountName,
this.adjustedAmount, this.adjustedAmount,
this.enteredEmployee, this.enteredEmployee,
this.paymentType, this.paymentType,
this.refId, this.refId,
this.refType, this.refType,
this.refNo, this.refNo,
this.approvalStatus, this.approvalStatus,
this.paymentDate, this.paymentDate,
this.approvalEmpId, this.approvalEmpId,
this.description, this.description,
this.amount, this.amount,
this.datetime, this.datetime,
this.status}); this.status,
});
PaymentHistory.fromJson(Map<String, dynamic> json) { PaymentHistory.fromJson(Map<String, dynamic> json) {
paymentId = json['payment_id']; paymentId = json['payment_id'];
...@@ -521,23 +526,23 @@ class PaymentHistory { ...@@ -521,23 +526,23 @@ class PaymentHistory {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['payment_id'] = this.paymentId; data['payment_id'] = paymentId;
data['ename'] = this.ename; data['ename'] = ename;
data['account_name'] = this.accountName; data['account_name'] = accountName;
data['adjusted_amount'] = this.adjustedAmount; data['adjusted_amount'] = adjustedAmount;
data['entered_employee'] = this.enteredEmployee; data['entered_employee'] = enteredEmployee;
data['payment_type'] = this.paymentType; data['payment_type'] = paymentType;
data['ref_id'] = this.refId; data['ref_id'] = refId;
data['ref_type'] = this.refType; data['ref_type'] = refType;
data['ref_no'] = this.refNo; data['ref_no'] = refNo;
data['approval_status'] = this.approvalStatus; data['approval_status'] = approvalStatus;
data['payment_date'] = this.paymentDate; data['payment_date'] = paymentDate;
data['approval_emp_id'] = this.approvalEmpId; data['approval_emp_id'] = approvalEmpId;
data['description'] = this.description; data['description'] = description;
data['amount'] = this.amount; data['amount'] = amount;
data['datetime'] = this.datetime; data['datetime'] = datetime;
data['status'] = this.status; data['status'] = status;
return data; return data;
} }
} }
...@@ -3,14 +3,17 @@ class ordersDetailsDispatchOrderViewResponse { ...@@ -3,14 +3,17 @@ class ordersDetailsDispatchOrderViewResponse {
String? error; String? error;
String? message; String? message;
ordersDetailsDispatchOrderViewResponse( ordersDetailsDispatchOrderViewResponse({
{this.products, this.error, this.message}); this.products,
this.error,
this.message,
});
ordersDetailsDispatchOrderViewResponse.fromJson(Map<String, dynamic> json) { ordersDetailsDispatchOrderViewResponse.fromJson(Map<String, dynamic> json) {
if (json['products'] != null) { if (json['products'] != null) {
products = <Products>[]; products = <Products>[];
json['products'].forEach((v) { json['products'].forEach((v) {
products!.add(new Products.fromJson(v)); products!.add(Products.fromJson(v));
}); });
} }
error = json['error']; error = json['error'];
...@@ -18,12 +21,12 @@ class ordersDetailsDispatchOrderViewResponse { ...@@ -18,12 +21,12 @@ class ordersDetailsDispatchOrderViewResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
if (this.products != null) { if (products != null) {
data['products'] = this.products!.map((v) => v.toJson()).toList(); data['products'] = products!.map((v) => v.toJson()).toList();
} }
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -45,22 +48,23 @@ class Products { ...@@ -45,22 +48,23 @@ class Products {
String? productName; String? productName;
String? crmOrderPId; String? crmOrderPId;
Products( Products({
{this.id, this.id,
this.orderId, this.orderId,
this.productId, this.productId,
this.pdiId, this.pdiId,
this.qty, this.qty,
this.unitPrice, this.unitPrice,
this.cgstPercentage, this.cgstPercentage,
this.sgstPercentage, this.sgstPercentage,
this.igstPercentage, this.igstPercentage,
this.totalPrice, this.totalPrice,
this.isExist, this.isExist,
this.createdDatetime, this.createdDatetime,
this.updatedDatetime, this.updatedDatetime,
this.productName, this.productName,
this.crmOrderPId}); this.crmOrderPId,
});
Products.fromJson(Map<String, dynamic> json) { Products.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];
...@@ -81,22 +85,22 @@ class Products { ...@@ -81,22 +85,22 @@ class Products {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['order_id'] = this.orderId; data['order_id'] = orderId;
data['product_id'] = this.productId; data['product_id'] = productId;
data['pdi_id'] = this.pdiId; data['pdi_id'] = pdiId;
data['qty'] = this.qty; data['qty'] = qty;
data['unit_price'] = this.unitPrice; data['unit_price'] = unitPrice;
data['cgst_percentage'] = this.cgstPercentage; data['cgst_percentage'] = cgstPercentage;
data['sgst_percentage'] = this.sgstPercentage; data['sgst_percentage'] = sgstPercentage;
data['igst_percentage'] = this.igstPercentage; data['igst_percentage'] = igstPercentage;
data['total_price'] = this.totalPrice; data['total_price'] = totalPrice;
data['is_exist'] = this.isExist; data['is_exist'] = isExist;
data['created_datetime'] = this.createdDatetime; data['created_datetime'] = createdDatetime;
data['updated_datetime'] = this.updatedDatetime; data['updated_datetime'] = updatedDatetime;
data['product_name'] = this.productName; data['product_name'] = productName;
data['crm_order_p_id'] = this.crmOrderPId; data['crm_order_p_id'] = crmOrderPId;
return data; return data;
} }
} }
...@@ -4,17 +4,22 @@ class ordersDetailsEditOrderViewResponse { ...@@ -4,17 +4,22 @@ class ordersDetailsEditOrderViewResponse {
String? error; String? error;
String? message; String? message;
ordersDetailsEditOrderViewResponse( ordersDetailsEditOrderViewResponse({
{this.orderDetails, this.states, this.error, this.message}); this.orderDetails,
this.states,
this.error,
this.message,
});
ordersDetailsEditOrderViewResponse.fromJson(Map<String, dynamic> json) { ordersDetailsEditOrderViewResponse.fromJson(Map<String, dynamic> json) {
orderDetails = json['order_details'] != null orderDetails =
? new OrderDetails.fromJson(json['order_details']) json['order_details'] != null
: null; ? OrderDetails.fromJson(json['order_details'])
: null;
if (json['states'] != null) { if (json['states'] != null) {
states = <States>[]; states = <States>[];
json['states'].forEach((v) { json['states'].forEach((v) {
states!.add(new States.fromJson(v)); states!.add(States.fromJson(v));
}); });
} }
error = json['error']; error = json['error'];
...@@ -22,15 +27,15 @@ class ordersDetailsEditOrderViewResponse { ...@@ -22,15 +27,15 @@ class ordersDetailsEditOrderViewResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
if (this.orderDetails != null) { if (orderDetails != null) {
data['order_details'] = this.orderDetails!.toJson(); data['order_details'] = orderDetails!.toJson();
} }
if (this.states != null) { if (states != null) {
data['states'] = this.states!.map((v) => v.toJson()).toList(); data['states'] = states!.map((v) => v.toJson()).toList();
} }
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -97,71 +102,72 @@ class OrderDetails { ...@@ -97,71 +102,72 @@ class OrderDetails {
String? adjustedAmount; String? adjustedAmount;
String? enteredEmpName; String? enteredEmpName;
String? salesPersonEmpName; String? salesPersonEmpName;
Null? tpcaAgentName; Null tpcaAgentName;
OrderDetails( OrderDetails({
{this.id, this.id,
this.orderNumber, this.orderNumber,
this.orderNumberHash, this.orderNumberHash,
this.accId, this.accId,
this.refType, this.refType,
this.refId, this.refId,
this.salesPersonEmpId, this.salesPersonEmpId,
this.enteredEmpId, this.enteredEmpId,
this.dispatchStateId, this.dispatchStateId,
this.dispatchDistrictId, this.dispatchDistrictId,
this.dispatchSubLocationId, this.dispatchSubLocationId,
this.dispatchPincode, this.dispatchPincode,
this.dispatchAddress, this.dispatchAddress,
this.basicAmount, this.basicAmount,
this.cgstAmount, this.cgstAmount,
this.sgstAmount, this.sgstAmount,
this.igstAmount, this.igstAmount,
this.paidAmount, this.paidAmount,
this.totalAmount, this.totalAmount,
this.status, this.status,
this.orderReceivedDate, this.orderReceivedDate,
this.scheduledDispatchDate, this.scheduledDispatchDate,
this.otp, this.otp,
this.note, this.note,
this.poViewFileName, this.poViewFileName,
this.poDirFilePath, this.poDirFilePath,
this.unloadingScope, this.unloadingScope,
this.freightScope, this.freightScope,
this.erectionScope, this.erectionScope,
this.saleOrderNumber, this.saleOrderNumber,
this.invoiceNumber, this.invoiceNumber,
this.vehicleNumber, this.vehicleNumber,
this.driverName, this.driverName,
this.driverMobileNumber, this.driverMobileNumber,
this.tpcApplicable, this.tpcApplicable,
this.requestedTpcAmount, this.requestedTpcAmount,
this.level1TpcApprovedAmount, this.level1TpcApprovedAmount,
this.level2TpcApprovedAmount, this.level2TpcApprovedAmount,
this.tpcPaymentMode, this.tpcPaymentMode,
this.tpcPaymentReferenceNo, this.tpcPaymentReferenceNo,
this.tpcPaymentAttachmentDirFilePath, this.tpcPaymentAttachmentDirFilePath,
this.tpcPaymentAttachementViewFileName, this.tpcPaymentAttachementViewFileName,
this.tpcStatus, this.tpcStatus,
this.tpcAgentId, this.tpcAgentId,
this.isExist, this.isExist,
this.createdDatetime, this.createdDatetime,
this.updatedDatetime, this.updatedDatetime,
this.accountName, this.accountName,
this.gstNumber, this.gstNumber,
this.billingAddress, this.billingAddress,
this.district, this.district,
this.state, this.state,
this.subLocality, this.subLocality,
this.billingPincode, this.billingPincode,
this.stateName, this.stateName,
this.balanceAmount, this.balanceAmount,
this.districtName, this.districtName,
this.subLocationName, this.subLocationName,
this.adjustedAmount, this.adjustedAmount,
this.enteredEmpName, this.enteredEmpName,
this.salesPersonEmpName, this.salesPersonEmpName,
this.tpcaAgentName}); this.tpcaAgentName,
});
OrderDetails.fromJson(Map<String, dynamic> json) { OrderDetails.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];
...@@ -205,9 +211,9 @@ class OrderDetails { ...@@ -205,9 +211,9 @@ class OrderDetails {
tpcPaymentMode = json['tpc_payment_mode']; tpcPaymentMode = json['tpc_payment_mode'];
tpcPaymentReferenceNo = json['tpc_payment_reference_no']; tpcPaymentReferenceNo = json['tpc_payment_reference_no'];
tpcPaymentAttachmentDirFilePath = tpcPaymentAttachmentDirFilePath =
json['tpc_payment_attachment_dir_file_path']; json['tpc_payment_attachment_dir_file_path'];
tpcPaymentAttachementViewFileName = tpcPaymentAttachementViewFileName =
json['tpc_payment_attachement_view_file_name']; json['tpc_payment_attachement_view_file_name'];
tpcStatus = json['tpc_status']; tpcStatus = json['tpc_status'];
tpcAgentId = json['tpc_agent_id']; tpcAgentId = json['tpc_agent_id'];
isExist = json['is_exist']; isExist = json['is_exist'];
...@@ -231,71 +237,71 @@ class OrderDetails { ...@@ -231,71 +237,71 @@ class OrderDetails {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['order_number'] = this.orderNumber; data['order_number'] = orderNumber;
data['order_number_hash'] = this.orderNumberHash; data['order_number_hash'] = orderNumberHash;
data['acc_id'] = this.accId; data['acc_id'] = accId;
data['ref_type'] = this.refType; data['ref_type'] = refType;
data['ref_id'] = this.refId; data['ref_id'] = refId;
data['sales_person_emp_id'] = this.salesPersonEmpId; data['sales_person_emp_id'] = salesPersonEmpId;
data['entered_emp_id'] = this.enteredEmpId; data['entered_emp_id'] = enteredEmpId;
data['dispatch_state_id'] = this.dispatchStateId; data['dispatch_state_id'] = dispatchStateId;
data['dispatch_district_id'] = this.dispatchDistrictId; data['dispatch_district_id'] = dispatchDistrictId;
data['dispatch_sub_location_id'] = this.dispatchSubLocationId; data['dispatch_sub_location_id'] = dispatchSubLocationId;
data['dispatch_pincode'] = this.dispatchPincode; data['dispatch_pincode'] = dispatchPincode;
data['dispatch_address'] = this.dispatchAddress; data['dispatch_address'] = dispatchAddress;
data['basic_amount'] = this.basicAmount; data['basic_amount'] = basicAmount;
data['cgst_amount'] = this.cgstAmount; data['cgst_amount'] = cgstAmount;
data['sgst_amount'] = this.sgstAmount; data['sgst_amount'] = sgstAmount;
data['igst_amount'] = this.igstAmount; data['igst_amount'] = igstAmount;
data['paid_amount'] = this.paidAmount; data['paid_amount'] = paidAmount;
data['total_amount'] = this.totalAmount; data['total_amount'] = totalAmount;
data['status'] = this.status; data['status'] = status;
data['order_received_date'] = this.orderReceivedDate; data['order_received_date'] = orderReceivedDate;
data['scheduled_dispatch_date'] = this.scheduledDispatchDate; data['scheduled_dispatch_date'] = scheduledDispatchDate;
data['otp'] = this.otp; data['otp'] = otp;
data['note'] = this.note; data['note'] = note;
data['po_view_file_name'] = this.poViewFileName; data['po_view_file_name'] = poViewFileName;
data['po_dir_file_path'] = this.poDirFilePath; data['po_dir_file_path'] = poDirFilePath;
data['unloading_scope'] = this.unloadingScope; data['unloading_scope'] = unloadingScope;
data['freight_scope'] = this.freightScope; data['freight_scope'] = freightScope;
data['erection_scope'] = this.erectionScope; data['erection_scope'] = erectionScope;
data['sale_order_number'] = this.saleOrderNumber; data['sale_order_number'] = saleOrderNumber;
data['invoice_number'] = this.invoiceNumber; data['invoice_number'] = invoiceNumber;
data['vehicle_number'] = this.vehicleNumber; data['vehicle_number'] = vehicleNumber;
data['driver_name'] = this.driverName; data['driver_name'] = driverName;
data['driver_mobile_number'] = this.driverMobileNumber; data['driver_mobile_number'] = driverMobileNumber;
data['tpc_applicable'] = this.tpcApplicable; data['tpc_applicable'] = tpcApplicable;
data['requested_tpc_amount'] = this.requestedTpcAmount; data['requested_tpc_amount'] = requestedTpcAmount;
data['level1_tpc_approved_amount'] = this.level1TpcApprovedAmount; data['level1_tpc_approved_amount'] = level1TpcApprovedAmount;
data['level2_tpc_approved_amount'] = this.level2TpcApprovedAmount; data['level2_tpc_approved_amount'] = level2TpcApprovedAmount;
data['tpc_payment_mode'] = this.tpcPaymentMode; data['tpc_payment_mode'] = tpcPaymentMode;
data['tpc_payment_reference_no'] = this.tpcPaymentReferenceNo; data['tpc_payment_reference_no'] = tpcPaymentReferenceNo;
data['tpc_payment_attachment_dir_file_path'] = data['tpc_payment_attachment_dir_file_path'] =
this.tpcPaymentAttachmentDirFilePath; tpcPaymentAttachmentDirFilePath;
data['tpc_payment_attachement_view_file_name'] = data['tpc_payment_attachement_view_file_name'] =
this.tpcPaymentAttachementViewFileName; tpcPaymentAttachementViewFileName;
data['tpc_status'] = this.tpcStatus; data['tpc_status'] = tpcStatus;
data['tpc_agent_id'] = this.tpcAgentId; data['tpc_agent_id'] = tpcAgentId;
data['is_exist'] = this.isExist; data['is_exist'] = isExist;
data['created_datetime'] = this.createdDatetime; data['created_datetime'] = createdDatetime;
data['updated_datetime'] = this.updatedDatetime; data['updated_datetime'] = updatedDatetime;
data['account_name'] = this.accountName; data['account_name'] = accountName;
data['gst_number'] = this.gstNumber; data['gst_number'] = gstNumber;
data['billing_address'] = this.billingAddress; data['billing_address'] = billingAddress;
data['district'] = this.district; data['district'] = district;
data['state'] = this.state; data['state'] = state;
data['sub_locality'] = this.subLocality; data['sub_locality'] = subLocality;
data['billing_pincode'] = this.billingPincode; data['billing_pincode'] = billingPincode;
data['state_name'] = this.stateName; data['state_name'] = stateName;
data['balance_amount'] = this.balanceAmount; data['balance_amount'] = balanceAmount;
data['district_name'] = this.districtName; data['district_name'] = districtName;
data['sub_location_name'] = this.subLocationName; data['sub_location_name'] = subLocationName;
data['adjusted_amount'] = this.adjustedAmount; data['adjusted_amount'] = adjustedAmount;
data['entered_emp_name'] = this.enteredEmpName; data['entered_emp_name'] = enteredEmpName;
data['sales_person_emp_name'] = this.salesPersonEmpName; data['sales_person_emp_name'] = salesPersonEmpName;
data['tpca_agent_name'] = this.tpcaAgentName; data['tpca_agent_name'] = tpcaAgentName;
return data; return data;
} }
} }
...@@ -312,9 +318,9 @@ class States { ...@@ -312,9 +318,9 @@ class States {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['name'] = this.name; data['name'] = name;
return data; return data;
} }
} }
...@@ -4,14 +4,18 @@ class ordersListByModeFilterResponse { ...@@ -4,14 +4,18 @@ class ordersListByModeFilterResponse {
String? error; String? error;
String? message; String? message;
ordersListByModeFilterResponse( ordersListByModeFilterResponse({
{this.employees, this.leadStatus, this.error, this.message}); this.employees,
this.leadStatus,
this.error,
this.message,
});
ordersListByModeFilterResponse.fromJson(Map<String, dynamic> json) { ordersListByModeFilterResponse.fromJson(Map<String, dynamic> json) {
if (json['employees'] != null) { if (json['employees'] != null) {
employees = <Employees>[]; employees = <Employees>[];
json['employees'].forEach((v) { json['employees'].forEach((v) {
employees!.add(new Employees.fromJson(v)); employees!.add(Employees.fromJson(v));
}); });
} }
leadStatus = json['lead_status'].cast<String>(); leadStatus = json['lead_status'].cast<String>();
...@@ -20,13 +24,13 @@ class ordersListByModeFilterResponse { ...@@ -20,13 +24,13 @@ class ordersListByModeFilterResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
if (this.employees != null) { if (employees != null) {
data['employees'] = this.employees!.map((v) => v.toJson()).toList(); data['employees'] = employees!.map((v) => v.toJson()).toList();
} }
data['lead_status'] = this.leadStatus; data['lead_status'] = leadStatus;
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -43,9 +47,9 @@ class Employees { ...@@ -43,9 +47,9 @@ class Employees {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['name'] = this.name; data['name'] = name;
return data; return data;
} }
} }
...@@ -9,7 +9,7 @@ class ordersListByModeResponse { ...@@ -9,7 +9,7 @@ class ordersListByModeResponse {
if (json['order_list'] != null) { if (json['order_list'] != null) {
orderList = <OrderList>[]; orderList = <OrderList>[];
json['order_list'].forEach((v) { json['order_list'].forEach((v) {
orderList!.add(new OrderList.fromJson(v)); orderList!.add(OrderList.fromJson(v));
}); });
} }
error = json['error']; error = json['error'];
...@@ -17,12 +17,12 @@ class ordersListByModeResponse { ...@@ -17,12 +17,12 @@ class ordersListByModeResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
if (this.orderList != null) { if (orderList != null) {
data['order_list'] = this.orderList!.map((v) => v.toJson()).toList(); data['order_list'] = orderList!.map((v) => v.toJson()).toList();
} }
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -54,32 +54,33 @@ class OrderList { ...@@ -54,32 +54,33 @@ class OrderList {
String? feedbackDate; String? feedbackDate;
String? feedbackEmpName; String? feedbackEmpName;
OrderList( OrderList({
{this.orderId, this.orderId,
this.orderNumber, this.orderNumber,
this.refType, this.refType,
this.totalAmount, this.totalAmount,
this.paidAmount, this.paidAmount,
this.balanceAmount, this.balanceAmount,
this.otp, this.otp,
this.orderReceivedDate, this.orderReceivedDate,
this.scheduledDispatchDate, this.scheduledDispatchDate,
this.status, this.status,
this.createdDatetime, this.createdDatetime,
this.updatedDatetime, this.updatedDatetime,
this.accountName, this.accountName,
this.paymentAmount, this.paymentAmount,
this.enteredEmpName, this.enteredEmpName,
this.salesPersonEmpName, this.salesPersonEmpName,
this.tpcAgentName, this.tpcAgentName,
this.requestedTpcAmount, this.requestedTpcAmount,
this.tpcApplicable, this.tpcApplicable,
this.level1TpcApprovedAmount, this.level1TpcApprovedAmount,
this.level2TpcApprovedAmount, this.level2TpcApprovedAmount,
this.tpcStatus, this.tpcStatus,
this.latestFeedback, this.latestFeedback,
this.feedbackDate, this.feedbackDate,
this.feedbackEmpName}); this.feedbackEmpName,
});
OrderList.fromJson(Map<String, dynamic> json) { OrderList.fromJson(Map<String, dynamic> json) {
orderId = json['order_id']; orderId = json['order_id'];
...@@ -110,32 +111,32 @@ class OrderList { ...@@ -110,32 +111,32 @@ class OrderList {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['order_id'] = this.orderId; data['order_id'] = orderId;
data['order_number'] = this.orderNumber; data['order_number'] = orderNumber;
data['ref_type'] = this.refType; data['ref_type'] = refType;
data['total_amount'] = this.totalAmount; data['total_amount'] = totalAmount;
data['paid_amount'] = this.paidAmount; data['paid_amount'] = paidAmount;
data['balance_amount'] = this.balanceAmount; data['balance_amount'] = balanceAmount;
data['otp'] = this.otp; data['otp'] = otp;
data['order_received_date'] = this.orderReceivedDate; data['order_received_date'] = orderReceivedDate;
data['scheduled_dispatch_date'] = this.scheduledDispatchDate; data['scheduled_dispatch_date'] = scheduledDispatchDate;
data['status'] = this.status; data['status'] = status;
data['created_datetime'] = this.createdDatetime; data['created_datetime'] = createdDatetime;
data['updated_datetime'] = this.updatedDatetime; data['updated_datetime'] = updatedDatetime;
data['account_name'] = this.accountName; data['account_name'] = accountName;
data['payment_amount'] = this.paymentAmount; data['payment_amount'] = paymentAmount;
data['entered_emp_name'] = this.enteredEmpName; data['entered_emp_name'] = enteredEmpName;
data['sales_person_emp_name'] = this.salesPersonEmpName; data['sales_person_emp_name'] = salesPersonEmpName;
data['tpc_agent_name'] = this.tpcAgentName; data['tpc_agent_name'] = tpcAgentName;
data['requested_tpc_amount'] = this.requestedTpcAmount; data['requested_tpc_amount'] = requestedTpcAmount;
data['tpc_applicable'] = this.tpcApplicable; data['tpc_applicable'] = tpcApplicable;
data['level1_tpc_approved_amount'] = this.level1TpcApprovedAmount; data['level1_tpc_approved_amount'] = level1TpcApprovedAmount;
data['level2_tpc_approved_amount'] = this.level2TpcApprovedAmount; data['level2_tpc_approved_amount'] = level2TpcApprovedAmount;
data['tpc_status'] = this.tpcStatus; data['tpc_status'] = tpcStatus;
data['latest_feedback'] = this.latestFeedback; data['latest_feedback'] = latestFeedback;
data['feedback_date'] = this.feedbackDate; data['feedback_date'] = feedbackDate;
data['feedback_emp_name'] = this.feedbackEmpName; data['feedback_emp_name'] = feedbackEmpName;
return data; return data;
} }
} }
...@@ -12,10 +12,10 @@ class ordersPdiIdByEngNumberResponse { ...@@ -12,10 +12,10 @@ class ordersPdiIdByEngNumberResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['pdi_id'] = this.pdiId; data['pdi_id'] = pdiId;
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -4,17 +4,22 @@ class paymentDetailsByModeFilterResponse { ...@@ -4,17 +4,22 @@ class paymentDetailsByModeFilterResponse {
String? error; String? error;
String? message; String? message;
paymentDetailsByModeFilterResponse( paymentDetailsByModeFilterResponse({
{this.paymentDetails, this.paidList, this.error, this.message}); this.paymentDetails,
this.paidList,
this.error,
this.message,
});
paymentDetailsByModeFilterResponse.fromJson(Map<String, dynamic> json) { paymentDetailsByModeFilterResponse.fromJson(Map<String, dynamic> json) {
paymentDetails = json['payment_details'] != null paymentDetails =
? new PaymentDetails.fromJson(json['payment_details']) json['payment_details'] != null
: null; ? PaymentDetails.fromJson(json['payment_details'])
: null;
if (json['paid_list'] != null) { if (json['paid_list'] != null) {
paidList = <PaidList>[]; paidList = <PaidList>[];
json['paid_list'].forEach((v) { json['paid_list'].forEach((v) {
paidList!.add(new PaidList.fromJson(v)); paidList!.add(PaidList.fromJson(v));
}); });
} }
error = json['error']; error = json['error'];
...@@ -22,15 +27,15 @@ class paymentDetailsByModeFilterResponse { ...@@ -22,15 +27,15 @@ class paymentDetailsByModeFilterResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
if (this.paymentDetails != null) { if (paymentDetails != null) {
data['payment_details'] = this.paymentDetails!.toJson(); data['payment_details'] = paymentDetails!.toJson();
} }
if (this.paidList != null) { if (paidList != null) {
data['paid_list'] = this.paidList!.map((v) => v.toJson()).toList(); data['paid_list'] = paidList!.map((v) => v.toJson()).toList();
} }
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -57,27 +62,28 @@ class PaymentDetails { ...@@ -57,27 +62,28 @@ class PaymentDetails {
String? description; String? description;
String? amount; String? amount;
PaymentDetails( PaymentDetails({
{this.attachment, this.attachment,
this.attachmentDirFilePath, this.attachmentDirFilePath,
this.attachmentViewFileName, this.attachmentViewFileName,
this.paymentId, this.paymentId,
this.status, this.status,
this.enteredEmpName, this.enteredEmpName,
this.accId, this.accId,
this.accountName, this.accountName,
this.approvalEmployee, this.approvalEmployee,
this.paymentType, this.paymentType,
this.refType, this.refType,
this.refId, this.refId,
this.refNo, this.refNo,
this.datetime, this.datetime,
this.approvalStatus, this.approvalStatus,
this.paymentDate, this.paymentDate,
this.adjustedAmount, this.adjustedAmount,
this.approvalEmpId, this.approvalEmpId,
this.description, this.description,
this.amount}); this.amount,
});
PaymentDetails.fromJson(Map<String, dynamic> json) { PaymentDetails.fromJson(Map<String, dynamic> json) {
attachment = json['attachment']; attachment = json['attachment'];
...@@ -103,27 +109,27 @@ class PaymentDetails { ...@@ -103,27 +109,27 @@ class PaymentDetails {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['attachment'] = this.attachment; data['attachment'] = attachment;
data['attachment_dir_file_path'] = this.attachmentDirFilePath; data['attachment_dir_file_path'] = attachmentDirFilePath;
data['attachment_view_file_name'] = this.attachmentViewFileName; data['attachment_view_file_name'] = attachmentViewFileName;
data['payment_id'] = this.paymentId; data['payment_id'] = paymentId;
data['status'] = this.status; data['status'] = status;
data['entered_emp_name'] = this.enteredEmpName; data['entered_emp_name'] = enteredEmpName;
data['acc_id'] = this.accId; data['acc_id'] = accId;
data['account_name'] = this.accountName; data['account_name'] = accountName;
data['approval_employee'] = this.approvalEmployee; data['approval_employee'] = approvalEmployee;
data['payment_type'] = this.paymentType; data['payment_type'] = paymentType;
data['ref_type'] = this.refType; data['ref_type'] = refType;
data['ref_id'] = this.refId; data['ref_id'] = refId;
data['ref_no'] = this.refNo; data['ref_no'] = refNo;
data['datetime'] = this.datetime; data['datetime'] = datetime;
data['approval_status'] = this.approvalStatus; data['approval_status'] = approvalStatus;
data['payment_date'] = this.paymentDate; data['payment_date'] = paymentDate;
data['adjusted_amount'] = this.adjustedAmount; data['adjusted_amount'] = adjustedAmount;
data['approval_emp_id'] = this.approvalEmpId; data['approval_emp_id'] = approvalEmpId;
data['description'] = this.description; data['description'] = description;
data['amount'] = this.amount; data['amount'] = amount;
return data; return data;
} }
} }
...@@ -181,58 +187,59 @@ class PaidList { ...@@ -181,58 +187,59 @@ class PaidList {
String? orderPaymentId; String? orderPaymentId;
String? datetime; String? datetime;
PaidList( PaidList({
{this.id, this.id,
this.orderNumber, this.orderNumber,
this.orderNumberHash, this.orderNumberHash,
this.accId, this.accId,
this.refType, this.refType,
this.refId, this.refId,
this.salesPersonEmpId, this.salesPersonEmpId,
this.enteredEmpId, this.enteredEmpId,
this.dispatchStateId, this.dispatchStateId,
this.dispatchDistrictId, this.dispatchDistrictId,
this.dispatchSubLocationId, this.dispatchSubLocationId,
this.dispatchPincode, this.dispatchPincode,
this.dispatchAddress, this.dispatchAddress,
this.basicAmount, this.basicAmount,
this.cgstAmount, this.cgstAmount,
this.sgstAmount, this.sgstAmount,
this.igstAmount, this.igstAmount,
this.paidAmount, this.paidAmount,
this.balanceAmount, this.balanceAmount,
this.totalAmount, this.totalAmount,
this.status, this.status,
this.orderReceivedDate, this.orderReceivedDate,
this.scheduledDispatchDate, this.scheduledDispatchDate,
this.otp, this.otp,
this.note, this.note,
this.poViewFileName, this.poViewFileName,
this.poDirFilePath, this.poDirFilePath,
this.unloadingScope, this.unloadingScope,
this.freightScope, this.freightScope,
this.erectionScope, this.erectionScope,
this.saleOrderNumber, this.saleOrderNumber,
this.invoiceNumber, this.invoiceNumber,
this.vehicleNumber, this.vehicleNumber,
this.driverName, this.driverName,
this.driverMobileNumber, this.driverMobileNumber,
this.tpcApplicable, this.tpcApplicable,
this.requestedTpcAmount, this.requestedTpcAmount,
this.level1TpcApprovedAmount, this.level1TpcApprovedAmount,
this.level2TpcApprovedAmount, this.level2TpcApprovedAmount,
this.tpcPaymentMode, this.tpcPaymentMode,
this.tpcPaymentReferenceNo, this.tpcPaymentReferenceNo,
this.tpcPaymentAttachmentDirFilePath, this.tpcPaymentAttachmentDirFilePath,
this.tpcPaymentAttachementViewFileName, this.tpcPaymentAttachementViewFileName,
this.tpcStatus, this.tpcStatus,
this.tpcAgentId, this.tpcAgentId,
this.isExist, this.isExist,
this.createdDatetime, this.createdDatetime,
this.updatedDatetime, this.updatedDatetime,
this.adjustedAmount, this.adjustedAmount,
this.orderPaymentId, this.orderPaymentId,
this.datetime}); this.datetime,
});
PaidList.fromJson(Map<String, dynamic> json) { PaidList.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];
...@@ -277,9 +284,9 @@ class PaidList { ...@@ -277,9 +284,9 @@ class PaidList {
tpcPaymentMode = json['tpc_payment_mode']; tpcPaymentMode = json['tpc_payment_mode'];
tpcPaymentReferenceNo = json['tpc_payment_reference_no']; tpcPaymentReferenceNo = json['tpc_payment_reference_no'];
tpcPaymentAttachmentDirFilePath = tpcPaymentAttachmentDirFilePath =
json['tpc_payment_attachment_dir_file_path']; json['tpc_payment_attachment_dir_file_path'];
tpcPaymentAttachementViewFileName = tpcPaymentAttachementViewFileName =
json['tpc_payment_attachement_view_file_name']; json['tpc_payment_attachement_view_file_name'];
tpcStatus = json['tpc_status']; tpcStatus = json['tpc_status'];
tpcAgentId = json['tpc_agent_id']; tpcAgentId = json['tpc_agent_id'];
isExist = json['is_exist']; isExist = json['is_exist'];
...@@ -291,60 +298,60 @@ class PaidList { ...@@ -291,60 +298,60 @@ class PaidList {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['order_number'] = this.orderNumber; data['order_number'] = orderNumber;
data['order_number_hash'] = this.orderNumberHash; data['order_number_hash'] = orderNumberHash;
data['acc_id'] = this.accId; data['acc_id'] = accId;
data['ref_type'] = this.refType; data['ref_type'] = refType;
data['ref_id'] = this.refId; data['ref_id'] = refId;
data['sales_person_emp_id'] = this.salesPersonEmpId; data['sales_person_emp_id'] = salesPersonEmpId;
data['entered_emp_id'] = this.enteredEmpId; data['entered_emp_id'] = enteredEmpId;
data['dispatch_state_id'] = this.dispatchStateId; data['dispatch_state_id'] = dispatchStateId;
data['dispatch_district_id'] = this.dispatchDistrictId; data['dispatch_district_id'] = dispatchDistrictId;
data['dispatch_sub_location_id'] = this.dispatchSubLocationId; data['dispatch_sub_location_id'] = dispatchSubLocationId;
data['dispatch_pincode'] = this.dispatchPincode; data['dispatch_pincode'] = dispatchPincode;
data['dispatch_address'] = this.dispatchAddress; data['dispatch_address'] = dispatchAddress;
data['basic_amount'] = this.basicAmount; data['basic_amount'] = basicAmount;
data['cgst_amount'] = this.cgstAmount; data['cgst_amount'] = cgstAmount;
data['sgst_amount'] = this.sgstAmount; data['sgst_amount'] = sgstAmount;
data['igst_amount'] = this.igstAmount; data['igst_amount'] = igstAmount;
data['paid_amount'] = this.paidAmount; data['paid_amount'] = paidAmount;
data['balance_amount'] = this.balanceAmount; data['balance_amount'] = balanceAmount;
data['total_amount'] = this.totalAmount; data['total_amount'] = totalAmount;
data['status'] = this.status; data['status'] = status;
data['order_received_date'] = this.orderReceivedDate; data['order_received_date'] = orderReceivedDate;
data['scheduled_dispatch_date'] = this.scheduledDispatchDate; data['scheduled_dispatch_date'] = scheduledDispatchDate;
data['otp'] = this.otp; data['otp'] = otp;
data['note'] = this.note; data['note'] = note;
data['po_view_file_name'] = this.poViewFileName; data['po_view_file_name'] = poViewFileName;
data['po_dir_file_path'] = this.poDirFilePath; data['po_dir_file_path'] = poDirFilePath;
data['unloading_scope'] = this.unloadingScope; data['unloading_scope'] = unloadingScope;
data['freight_scope'] = this.freightScope; data['freight_scope'] = freightScope;
data['erection_scope'] = this.erectionScope; data['erection_scope'] = erectionScope;
data['sale_order_number'] = this.saleOrderNumber; data['sale_order_number'] = saleOrderNumber;
data['invoice_number'] = this.invoiceNumber; data['invoice_number'] = invoiceNumber;
data['vehicle_number'] = this.vehicleNumber; data['vehicle_number'] = vehicleNumber;
data['driver_name'] = this.driverName; data['driver_name'] = driverName;
data['driver_mobile_number'] = this.driverMobileNumber; data['driver_mobile_number'] = driverMobileNumber;
data['tpc_applicable'] = this.tpcApplicable; data['tpc_applicable'] = tpcApplicable;
data['requested_tpc_amount'] = this.requestedTpcAmount; data['requested_tpc_amount'] = requestedTpcAmount;
data['level1_tpc_approved_amount'] = this.level1TpcApprovedAmount; data['level1_tpc_approved_amount'] = level1TpcApprovedAmount;
data['level2_tpc_approved_amount'] = this.level2TpcApprovedAmount; data['level2_tpc_approved_amount'] = level2TpcApprovedAmount;
data['tpc_payment_mode'] = this.tpcPaymentMode; data['tpc_payment_mode'] = tpcPaymentMode;
data['tpc_payment_reference_no'] = this.tpcPaymentReferenceNo; data['tpc_payment_reference_no'] = tpcPaymentReferenceNo;
data['tpc_payment_attachment_dir_file_path'] = data['tpc_payment_attachment_dir_file_path'] =
this.tpcPaymentAttachmentDirFilePath; tpcPaymentAttachmentDirFilePath;
data['tpc_payment_attachement_view_file_name'] = data['tpc_payment_attachement_view_file_name'] =
this.tpcPaymentAttachementViewFileName; tpcPaymentAttachementViewFileName;
data['tpc_status'] = this.tpcStatus; data['tpc_status'] = tpcStatus;
data['tpc_agent_id'] = this.tpcAgentId; data['tpc_agent_id'] = tpcAgentId;
data['is_exist'] = this.isExist; data['is_exist'] = isExist;
data['created_datetime'] = this.createdDatetime; data['created_datetime'] = createdDatetime;
data['updated_datetime'] = this.updatedDatetime; data['updated_datetime'] = updatedDatetime;
data['adjusted_amount'] = this.adjustedAmount; data['adjusted_amount'] = adjustedAmount;
data['order_payment_id'] = this.orderPaymentId; data['order_payment_id'] = orderPaymentId;
data['datetime'] = this.datetime; data['datetime'] = datetime;
return data; return data;
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment