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

17-09

parent 185e0896
......@@ -3,23 +3,28 @@ class paymentRequestionBankDetailsResponse {
String? error;
String? message;
paymentRequestionBankDetailsResponse({this.getDetails, this.error, this.message});
paymentRequestionBankDetailsResponse({
this.getDetails,
this.error,
this.message,
});
paymentRequestionBankDetailsResponse.fromJson(Map<String, dynamic> json) {
getDetails = json['get_details'] != null
? new GetDetails.fromJson(json['get_details'])
: null;
getDetails =
json['get_details'] != null
? GetDetails.fromJson(json['get_details'])
: null;
error = json['error'];
message = json['message'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.getDetails != null) {
data['get_details'] = this.getDetails!.toJson();
final Map<String, dynamic> data = <String, dynamic>{};
if (getDetails != null) {
data['get_details'] = getDetails!.toJson();
}
data['error'] = this.error;
data['message'] = this.message;
data['error'] = error;
data['message'] = message;
return data;
}
}
......@@ -34,15 +39,16 @@ class GetDetails {
String? bankAccountNumber;
String? bankUpiId;
GetDetails(
{this.id,
this.name,
this.bankName,
this.bankBranchName,
this.bankIfscCode,
this.bankAccountHolderName,
this.bankAccountNumber,
this.bankUpiId});
GetDetails({
this.id,
this.name,
this.bankName,
this.bankBranchName,
this.bankIfscCode,
this.bankAccountHolderName,
this.bankAccountNumber,
this.bankUpiId,
});
GetDetails.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -56,15 +62,15 @@ class GetDetails {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['name'] = this.name;
data['bank_name'] = this.bankName;
data['bank_branch_name'] = this.bankBranchName;
data['bank_ifsc_code'] = this.bankIfscCode;
data['bank_account_holder_name'] = this.bankAccountHolderName;
data['bank_account_number'] = this.bankAccountNumber;
data['bank_upi_id'] = this.bankUpiId;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['name'] = name;
data['bank_name'] = bankName;
data['bank_branch_name'] = bankBranchName;
data['bank_ifsc_code'] = bankIfscCode;
data['bank_account_holder_name'] = bankAccountHolderName;
data['bank_account_number'] = bankAccountNumber;
data['bank_upi_id'] = bankUpiId;
return data;
}
}
......@@ -4,30 +4,36 @@ class paymentRequisitionDetailsResponse {
String? error;
String? message;
paymentRequisitionDetailsResponse(
{this.requestDetails, this.paymentDetails, this.error, this.message});
paymentRequisitionDetailsResponse({
this.requestDetails,
this.paymentDetails,
this.error,
this.message,
});
paymentRequisitionDetailsResponse.fromJson(Map<String, dynamic> json) {
requestDetails = json['request_details'] != null
? new RequestDetails.fromJson(json['request_details'])
: null;
paymentDetails = json['payment_details'] != null
? new PaymentDetails.fromJson(json['payment_details'])
: null;
requestDetails =
json['request_details'] != null
? RequestDetails.fromJson(json['request_details'])
: null;
paymentDetails =
json['payment_details'] != null
? PaymentDetails.fromJson(json['payment_details'])
: null;
error = json['error'];
message = json['message'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.requestDetails != null) {
data['request_details'] = this.requestDetails!.toJson();
final Map<String, dynamic> data = <String, dynamic>{};
if (requestDetails != null) {
data['request_details'] = requestDetails!.toJson();
}
if (this.paymentDetails != null) {
data['payment_details'] = this.paymentDetails!.toJson();
if (paymentDetails != null) {
data['payment_details'] = paymentDetails!.toJson();
}
data['error'] = this.error;
data['message'] = this.message;
data['error'] = error;
data['message'] = message;
return data;
}
}
......@@ -65,7 +71,8 @@ class RequestDetails {
String? bankAccountNumber;
String? bankUpiId;
RequestDetails({this.id,
RequestDetails({
this.id,
this.isProcessedPaymentRequest,
this.accountId,
this.accountName,
......@@ -133,38 +140,38 @@ class RequestDetails {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['is_processed_payment_request'] = this.isProcessedPaymentRequest;
data['account_id'] = this.accountId;
data['account_name'] = this.accountName;
data['branch'] = this.branch;
data['requesting_purpose'] = this.requestingPurpose;
data['trans_dis'] = this.transDis;
data['description'] = this.description;
data['amount'] = this.amount;
data['formatted_amount'] = this.formattedAmount;
data['requested_amount'] = this.requestedAmount;
data['request_mode'] = this.requestMode;
data['status'] = this.status;
data['created_employee'] = this.createdEmployee;
data['level1_employee'] = this.level1Employee;
data['level2_employee'] = this.level2Employee;
data['level_1_approval_remarks'] = this.level1ApprovalRemarks;
data['level_2_approval_remarks'] = this.level2ApprovalRemarks;
data['attachment_view_file_name'] = this.attachmentViewFileName;
data['attachment_dir_file_path'] = this.attachmentDirFilePath;
data['date'] = this.date;
data['created_datetime'] = this.createdDatetime;
data['updated_datetime'] = this.updatedDatetime;
data['proposed_account'] = this.proposedAccount;
data['proposed_account_id'] = this.proposedAccountId;
data['bank_name'] = this.bankName;
data['bank_branch_name'] = this.bankBranchname;
data['bank_ifsc_code'] = this.bankIfscCode;
data['bank_account_holder_name'] = this.bankAccountHolderName;
data['bank_account_number'] = this.bankAccountNumber;
data['bank_upi_id'] = this.bankUpiId;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['is_processed_payment_request'] = isProcessedPaymentRequest;
data['account_id'] = accountId;
data['account_name'] = accountName;
data['branch'] = branch;
data['requesting_purpose'] = requestingPurpose;
data['trans_dis'] = transDis;
data['description'] = description;
data['amount'] = amount;
data['formatted_amount'] = formattedAmount;
data['requested_amount'] = requestedAmount;
data['request_mode'] = requestMode;
data['status'] = status;
data['created_employee'] = createdEmployee;
data['level1_employee'] = level1Employee;
data['level2_employee'] = level2Employee;
data['level_1_approval_remarks'] = level1ApprovalRemarks;
data['level_2_approval_remarks'] = level2ApprovalRemarks;
data['attachment_view_file_name'] = attachmentViewFileName;
data['attachment_dir_file_path'] = attachmentDirFilePath;
data['date'] = date;
data['created_datetime'] = createdDatetime;
data['updated_datetime'] = updatedDatetime;
data['proposed_account'] = proposedAccount;
data['proposed_account_id'] = proposedAccountId;
data['bank_name'] = bankName;
data['bank_branch_name'] = bankBranchname;
data['bank_ifsc_code'] = bankIfscCode;
data['bank_account_holder_name'] = bankAccountHolderName;
data['bank_account_number'] = bankAccountNumber;
data['bank_upi_id'] = bankUpiId;
return data;
}
}
......@@ -199,7 +206,8 @@ class PaymentDetails {
String? paymentEmployeeName;
String? mode;
PaymentDetails({this.id,
PaymentDetails({
this.id,
this.refType,
this.refId,
this.paymentAccountId,
......@@ -226,7 +234,8 @@ class PaymentDetails {
this.accountName,
this.paymentAccountName,
this.paymentEmployeeName,
this.mode});
this.mode,
});
PaymentDetails.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -260,34 +269,34 @@ class PaymentDetails {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['ref_type'] = this.refType;
data['ref_id'] = this.refId;
data['payment_account_id'] = this.paymentAccountId;
data['account_id'] = this.accountId;
data['payment_mode_id'] = this.paymentModeId;
data['amount'] = this.amount;
data['bank_name'] = this.bankName;
data['bank_branch_name'] = this.bankBranchName;
data['bank_ifsc_code'] = this.bankIfscCode;
data['bank_account_holder_name'] = this.bankAccountHolderName;
data['bank_account_number'] = this.bankAccountNumber;
data['bank_upi_id'] = this.bankUpiId;
data['attachment_dir_file_path'] = this.attachmentDirFilePath;
data['attachment_view_file_name'] = this.attachmentViewFileName;
data['description'] = this.description;
data['payment_reference_number'] = this.paymentReferenceNumber;
data['created_employee_id'] = this.createdEmployeeId;
data['payment_date'] = this.paymentDate;
data['payment_remarks'] = this.paymentRemarks;
data['is_exists'] = this.isExists;
data['created_datetime'] = this.createdDatetime;
data['updated_datetime'] = this.updatedDatetime;
data['account_name'] = this.accountName;
data['payment_account_name'] = this.paymentAccountName;
data['payment_employee_name'] = this.paymentEmployeeName;
data['mode'] = this.mode;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['ref_type'] = refType;
data['ref_id'] = refId;
data['payment_account_id'] = paymentAccountId;
data['account_id'] = accountId;
data['payment_mode_id'] = paymentModeId;
data['amount'] = amount;
data['bank_name'] = bankName;
data['bank_branch_name'] = bankBranchName;
data['bank_ifsc_code'] = bankIfscCode;
data['bank_account_holder_name'] = bankAccountHolderName;
data['bank_account_number'] = bankAccountNumber;
data['bank_upi_id'] = bankUpiId;
data['attachment_dir_file_path'] = attachmentDirFilePath;
data['attachment_view_file_name'] = attachmentViewFileName;
data['description'] = description;
data['payment_reference_number'] = paymentReferenceNumber;
data['created_employee_id'] = createdEmployeeId;
data['payment_date'] = paymentDate;
data['payment_remarks'] = paymentRemarks;
data['is_exists'] = isExists;
data['created_datetime'] = createdDatetime;
data['updated_datetime'] = updatedDatetime;
data['account_name'] = accountName;
data['payment_account_name'] = paymentAccountName;
data['payment_employee_name'] = paymentEmployeeName;
data['mode'] = mode;
return data;
}
}
......@@ -3,25 +3,30 @@ class paymentRequisitionPaymentsDetailsResponse {
String? error;
String? message;
paymentRequisitionPaymentsDetailsResponse(
{this.paymentDetails, this.error, this.message});
paymentRequisitionPaymentsDetailsResponse({
this.paymentDetails,
this.error,
this.message,
});
paymentRequisitionPaymentsDetailsResponse.fromJson(
Map<String, dynamic> json) {
paymentDetails = json['payment_details'] != null
? new PaymentDetails.fromJson(json['payment_details'])
: null;
Map<String, dynamic> json,
) {
paymentDetails =
json['payment_details'] != null
? PaymentDetails.fromJson(json['payment_details'])
: null;
error = json['error'];
message = json['message'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.paymentDetails != null) {
data['payment_details'] = this.paymentDetails!.toJson();
final Map<String, dynamic> data = <String, dynamic>{};
if (paymentDetails != null) {
data['payment_details'] = paymentDetails!.toJson();
}
data['error'] = this.error;
data['message'] = this.message;
data['error'] = error;
data['message'] = message;
return data;
}
}
......@@ -55,34 +60,35 @@ class PaymentDetails {
String? paymentEmployeeName;
String? mode;
PaymentDetails(
{this.id,
this.refType,
this.refId,
this.paymentAccountId,
this.accountId,
this.paymentModeId,
this.amount,
this.bankName,
this.bankBranchName,
this.bankIfscCode,
this.bankAccountHolderName,
this.bankAccountNumber,
this.bankUpiId,
this.attachmentDirFilePath,
this.attachmentViewFileName,
this.description,
this.paymentReferenceNumber,
this.createdEmployeeId,
this.paymentDate,
this.paymentRemarks,
this.isExists,
this.createdDatetime,
this.updatedDatetime,
this.accountName,
this.paymentAccountName,
this.paymentEmployeeName,
this.mode});
PaymentDetails({
this.id,
this.refType,
this.refId,
this.paymentAccountId,
this.accountId,
this.paymentModeId,
this.amount,
this.bankName,
this.bankBranchName,
this.bankIfscCode,
this.bankAccountHolderName,
this.bankAccountNumber,
this.bankUpiId,
this.attachmentDirFilePath,
this.attachmentViewFileName,
this.description,
this.paymentReferenceNumber,
this.createdEmployeeId,
this.paymentDate,
this.paymentRemarks,
this.isExists,
this.createdDatetime,
this.updatedDatetime,
this.accountName,
this.paymentAccountName,
this.paymentEmployeeName,
this.mode,
});
PaymentDetails.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -115,34 +121,34 @@ class PaymentDetails {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['ref_type'] = this.refType;
data['ref_id'] = this.refId;
data['payment_account_id'] = this.paymentAccountId;
data['account_id'] = this.accountId;
data['payment_mode_id'] = this.paymentModeId;
data['amount'] = this.amount;
data['bank_name'] = this.bankName;
data['bank_branch_name'] = this.bankBranchName;
data['bank_ifsc_code'] = this.bankIfscCode;
data['bank_account_holder_name'] = this.bankAccountHolderName;
data['bank_account_number'] = this.bankAccountNumber;
data['bank_upi_id'] = this.bankUpiId;
data['attachment_dir_file_path'] = this.attachmentDirFilePath;
data['attachment_view_file_name'] = this.attachmentViewFileName;
data['description'] = this.description;
data['payment_reference_number'] = this.paymentReferenceNumber;
data['created_employee_id'] = this.createdEmployeeId;
data['payment_date'] = this.paymentDate;
data['payment_remarks'] = this.paymentRemarks;
data['is_exists'] = this.isExists;
data['created_datetime'] = this.createdDatetime;
data['updated_datetime'] = this.updatedDatetime;
data['account_name'] = this.accountName;
data['payment_account_name'] = this.paymentAccountName;
data['payment_employee_name'] = this.paymentEmployeeName;
data['mode'] = this.mode;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['ref_type'] = refType;
data['ref_id'] = refId;
data['payment_account_id'] = paymentAccountId;
data['account_id'] = accountId;
data['payment_mode_id'] = paymentModeId;
data['amount'] = amount;
data['bank_name'] = bankName;
data['bank_branch_name'] = bankBranchName;
data['bank_ifsc_code'] = bankIfscCode;
data['bank_account_holder_name'] = bankAccountHolderName;
data['bank_account_number'] = bankAccountNumber;
data['bank_upi_id'] = bankUpiId;
data['attachment_dir_file_path'] = attachmentDirFilePath;
data['attachment_view_file_name'] = attachmentViewFileName;
data['description'] = description;
data['payment_reference_number'] = paymentReferenceNumber;
data['created_employee_id'] = createdEmployeeId;
data['payment_date'] = paymentDate;
data['payment_remarks'] = paymentRemarks;
data['is_exists'] = isExists;
data['created_datetime'] = createdDatetime;
data['updated_datetime'] = updatedDatetime;
data['account_name'] = accountName;
data['payment_account_name'] = paymentAccountName;
data['payment_employee_name'] = paymentEmployeeName;
data['mode'] = mode;
return data;
}
}
......@@ -3,14 +3,17 @@ class paymentRequisitionPaymentsListResponse {
String? error;
String? message;
paymentRequisitionPaymentsListResponse(
{this.paymentsList, this.error, this.message});
paymentRequisitionPaymentsListResponse({
this.paymentsList,
this.error,
this.message,
});
paymentRequisitionPaymentsListResponse.fromJson(Map<String, dynamic> json) {
if (json['payments_list'] != null) {
paymentsList = <PaymentsList>[];
json['payments_list'].forEach((v) {
paymentsList!.add(new PaymentsList.fromJson(v));
paymentsList!.add(PaymentsList.fromJson(v));
});
}
error = json['error'];
......@@ -18,13 +21,12 @@ class paymentRequisitionPaymentsListResponse {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.paymentsList != null) {
data['payments_list'] =
this.paymentsList!.map((v) => v.toJson()).toList();
final Map<String, dynamic> data = <String, dynamic>{};
if (paymentsList != null) {
data['payments_list'] = paymentsList!.map((v) => v.toJson()).toList();
}
data['error'] = this.error;
data['message'] = this.message;
data['error'] = error;
data['message'] = message;
return data;
}
}
......@@ -52,28 +54,29 @@ class PaymentsList {
String? accountId;
String? paymentAccountId;
PaymentsList(
{this.id,
this.refType,
this.amount,
this.bankName,
this.bankBranchName,
this.bankIfscCode,
this.bankAccountHolderName,
this.bankAccountNumber,
this.bankUpiId,
this.attachmentDirFilePath,
this.attachmentViewFileName,
this.description,
this.paymentReferenceNumber,
this.paymentDate,
this.receipientAccount,
this.payAccount,
this.requestMode,
this.createdEmployee,
this.createdDatetime,
this.accountId,
this.paymentAccountId});
PaymentsList({
this.id,
this.refType,
this.amount,
this.bankName,
this.bankBranchName,
this.bankIfscCode,
this.bankAccountHolderName,
this.bankAccountNumber,
this.bankUpiId,
this.attachmentDirFilePath,
this.attachmentViewFileName,
this.description,
this.paymentReferenceNumber,
this.paymentDate,
this.receipientAccount,
this.payAccount,
this.requestMode,
this.createdEmployee,
this.createdDatetime,
this.accountId,
this.paymentAccountId,
});
PaymentsList.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -100,28 +103,28 @@ class PaymentsList {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['ref_type'] = this.refType;
data['amount'] = this.amount;
data['bank_name'] = this.bankName;
data['bank_branch_name'] = this.bankBranchName;
data['bank_ifsc_code'] = this.bankIfscCode;
data['bank_account_holder_name'] = this.bankAccountHolderName;
data['bank_account_number'] = this.bankAccountNumber;
data['bank_upi_id'] = this.bankUpiId;
data['attachment_dir_file_path'] = this.attachmentDirFilePath;
data['attachment_view_file_name'] = this.attachmentViewFileName;
data['description'] = this.description;
data['payment_reference_number'] = this.paymentReferenceNumber;
data['payment_date'] = this.paymentDate;
data['receipient_account'] = this.receipientAccount;
data['pay_account'] = this.payAccount;
data['request_mode'] = this.requestMode;
data['created_employee'] = this.createdEmployee;
data['created_datetime'] = this.createdDatetime;
data['account_id'] = this.accountId;
data['payment_account_id'] = this.paymentAccountId;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['ref_type'] = refType;
data['amount'] = amount;
data['bank_name'] = bankName;
data['bank_branch_name'] = bankBranchName;
data['bank_ifsc_code'] = bankIfscCode;
data['bank_account_holder_name'] = bankAccountHolderName;
data['bank_account_number'] = bankAccountNumber;
data['bank_upi_id'] = bankUpiId;
data['attachment_dir_file_path'] = attachmentDirFilePath;
data['attachment_view_file_name'] = attachmentViewFileName;
data['description'] = description;
data['payment_reference_number'] = paymentReferenceNumber;
data['payment_date'] = paymentDate;
data['receipient_account'] = receipientAccount;
data['pay_account'] = payAccount;
data['request_mode'] = requestMode;
data['created_employee'] = createdEmployee;
data['created_datetime'] = createdDatetime;
data['account_id'] = accountId;
data['payment_account_id'] = paymentAccountId;
return data;
}
}
......@@ -3,25 +3,30 @@ class paymentRequisitionPaymentsReceiptsDetailsResponse {
String? error;
String? message;
paymentRequisitionPaymentsReceiptsDetailsResponse(
{this.receiptDetails, this.error, this.message});
paymentRequisitionPaymentsReceiptsDetailsResponse({
this.receiptDetails,
this.error,
this.message,
});
paymentRequisitionPaymentsReceiptsDetailsResponse.fromJson(
Map<String, dynamic> json) {
receiptDetails = json['receipt_details'] != null
? new ReceiptDetails.fromJson(json['receipt_details'])
: null;
Map<String, dynamic> json,
) {
receiptDetails =
json['receipt_details'] != null
? ReceiptDetails.fromJson(json['receipt_details'])
: null;
error = json['error'];
message = json['message'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.receiptDetails != null) {
data['receipt_details'] = this.receiptDetails!.toJson();
final Map<String, dynamic> data = <String, dynamic>{};
if (receiptDetails != null) {
data['receipt_details'] = receiptDetails!.toJson();
}
data['error'] = this.error;
data['message'] = this.message;
data['error'] = error;
data['message'] = message;
return data;
}
}
......@@ -49,28 +54,29 @@ class ReceiptDetails {
String? receiptAccountId;
String? bankUpiId;
ReceiptDetails(
{this.id,
this.amount,
this.bankName,
this.bankBranchName,
this.bankIfscCode,
this.bankAccountHolderName,
this.bankAccountNumber,
this.attachmentDirFilePath,
this.attachmentViewFileName,
this.accountId,
this.description,
this.paymentReferenceNumber,
this.receiptDate,
this.receipientAccount,
this.payAccount,
this.requestMode,
this.createdEmployee,
this.createdDatetime,
this.updatedDatetime,
this.receiptAccountId,
this.bankUpiId});
ReceiptDetails({
this.id,
this.amount,
this.bankName,
this.bankBranchName,
this.bankIfscCode,
this.bankAccountHolderName,
this.bankAccountNumber,
this.attachmentDirFilePath,
this.attachmentViewFileName,
this.accountId,
this.description,
this.paymentReferenceNumber,
this.receiptDate,
this.receipientAccount,
this.payAccount,
this.requestMode,
this.createdEmployee,
this.createdDatetime,
this.updatedDatetime,
this.receiptAccountId,
this.bankUpiId,
});
ReceiptDetails.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -97,28 +103,28 @@ class ReceiptDetails {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['amount'] = this.amount;
data['bank_name'] = this.bankName;
data['bank_branch_name'] = this.bankBranchName;
data['bank_ifsc_code'] = this.bankIfscCode;
data['bank_account_holder_name'] = this.bankAccountHolderName;
data['bank_account_number'] = this.bankAccountNumber;
data['attachment_dir_file_path'] = this.attachmentDirFilePath;
data['attachment_view_file_name'] = this.attachmentViewFileName;
data['account_id'] = this.accountId;
data['description'] = this.description;
data['payment_reference_number'] = this.paymentReferenceNumber;
data['receipt_date'] = this.receiptDate;
data['receipient_account'] = this.receipientAccount;
data['pay_account'] = this.payAccount;
data['request_mode'] = this.requestMode;
data['created_employee'] = this.createdEmployee;
data['created_datetime'] = this.createdDatetime;
data['updated_datetime'] = this.updatedDatetime;
data['receipt_account_id'] = this.receiptAccountId;
data['bank_upi_id'] =this.bankUpiId;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['amount'] = amount;
data['bank_name'] = bankName;
data['bank_branch_name'] = bankBranchName;
data['bank_ifsc_code'] = bankIfscCode;
data['bank_account_holder_name'] = bankAccountHolderName;
data['bank_account_number'] = bankAccountNumber;
data['attachment_dir_file_path'] = attachmentDirFilePath;
data['attachment_view_file_name'] = attachmentViewFileName;
data['account_id'] = accountId;
data['description'] = description;
data['payment_reference_number'] = paymentReferenceNumber;
data['receipt_date'] = receiptDate;
data['receipient_account'] = receipientAccount;
data['pay_account'] = payAccount;
data['request_mode'] = requestMode;
data['created_employee'] = createdEmployee;
data['created_datetime'] = createdDatetime;
data['updated_datetime'] = updatedDatetime;
data['receipt_account_id'] = receiptAccountId;
data['bank_upi_id'] = bankUpiId;
return data;
}
}
......@@ -3,15 +3,19 @@ class paymentRequisitionPaymentsReceiptsListResponse {
String? error;
String? message;
paymentRequisitionPaymentsReceiptsListResponse(
{this.receiptsList, this.error, this.message});
paymentRequisitionPaymentsReceiptsListResponse({
this.receiptsList,
this.error,
this.message,
});
paymentRequisitionPaymentsReceiptsListResponse.fromJson(
Map<String, dynamic> json) {
Map<String, dynamic> json,
) {
if (json['receipts_list'] != null) {
receiptsList = <ReceiptsList>[];
json['receipts_list'].forEach((v) {
receiptsList!.add(new ReceiptsList.fromJson(v));
receiptsList!.add(ReceiptsList.fromJson(v));
});
}
error = json['error'];
......@@ -19,13 +23,12 @@ class paymentRequisitionPaymentsReceiptsListResponse {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.receiptsList != null) {
data['receipts_list'] =
this.receiptsList!.map((v) => v.toJson()).toList();
final Map<String, dynamic> data = <String, dynamic>{};
if (receiptsList != null) {
data['receipts_list'] = receiptsList!.map((v) => v.toJson()).toList();
}
data['error'] = this.error;
data['message'] = this.message;
data['error'] = error;
data['message'] = message;
return data;
}
}
......@@ -52,27 +55,28 @@ class ReceiptsList {
String? updatedDatetime;
String? receiptAccountId;
ReceiptsList(
{this.id,
this.amount,
this.bankName,
this.bankBranchName,
this.bankIfscCode,
this.bankAccountHolderName,
this.bankAccountNumber,
this.attachmentDirFilePath,
this.attachmentViewFileName,
this.accountId,
this.description,
this.paymentReferenceNumber,
this.receiptDate,
this.receipientAccount,
this.payAccount,
this.requestMode,
this.createdEmployee,
this.createdDatetime,
this.updatedDatetime,
this.receiptAccountId});
ReceiptsList({
this.id,
this.amount,
this.bankName,
this.bankBranchName,
this.bankIfscCode,
this.bankAccountHolderName,
this.bankAccountNumber,
this.attachmentDirFilePath,
this.attachmentViewFileName,
this.accountId,
this.description,
this.paymentReferenceNumber,
this.receiptDate,
this.receipientAccount,
this.payAccount,
this.requestMode,
this.createdEmployee,
this.createdDatetime,
this.updatedDatetime,
this.receiptAccountId,
});
ReceiptsList.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -98,27 +102,27 @@ class ReceiptsList {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['amount'] = this.amount;
data['bank_name'] = this.bankName;
data['bank_branch_name'] = this.bankBranchName;
data['bank_ifsc_code'] = this.bankIfscCode;
data['bank_account_holder_name'] = this.bankAccountHolderName;
data['bank_account_number'] = this.bankAccountNumber;
data['attachment_dir_file_path'] = this.attachmentDirFilePath;
data['attachment_view_file_name'] = this.attachmentViewFileName;
data['account_id'] = this.accountId;
data['description'] = this.description;
data['payment_reference_number'] = this.paymentReferenceNumber;
data['receipt_date'] = this.receiptDate;
data['receipient_account'] = this.receipientAccount;
data['pay_account'] = this.payAccount;
data['request_mode'] = this.requestMode;
data['created_employee'] = this.createdEmployee;
data['created_datetime'] = this.createdDatetime;
data['updated_datetime'] = this.updatedDatetime;
data['receipt_account_id'] = this.receiptAccountId;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['amount'] = amount;
data['bank_name'] = bankName;
data['bank_branch_name'] = bankBranchName;
data['bank_ifsc_code'] = bankIfscCode;
data['bank_account_holder_name'] = bankAccountHolderName;
data['bank_account_number'] = bankAccountNumber;
data['attachment_dir_file_path'] = attachmentDirFilePath;
data['attachment_view_file_name'] = attachmentViewFileName;
data['account_id'] = accountId;
data['description'] = description;
data['payment_reference_number'] = paymentReferenceNumber;
data['receipt_date'] = receiptDate;
data['receipient_account'] = receipientAccount;
data['pay_account'] = payAccount;
data['request_mode'] = requestMode;
data['created_employee'] = createdEmployee;
data['created_datetime'] = createdDatetime;
data['updated_datetime'] = updatedDatetime;
data['receipt_account_id'] = receiptAccountId;
return data;
}
}
......@@ -10,19 +10,19 @@ class generatorComplaintResponse {
if (json['list'] != null) {
list = <C_List>[];
json['list'].forEach((v) {
list!.add(new C_List.fromJson(v));
list!.add(C_List.fromJson(v));
});
}
sessionExists = json['session_exists'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['error'] = this.error;
if (this.list != null) {
data['list'] = this.list!.map((v) => v.toJson()).toList();
final Map<String, dynamic> data = <String, dynamic>{};
data['error'] = error;
if (list != null) {
data['list'] = list!.map((v) => v.toJson()).toList();
}
data['session_exists'] = this.sessionExists;
data['session_exists'] = sessionExists;
return data;
}
}
......@@ -36,14 +36,15 @@ class C_List {
String? techName;
String? createdBy;
C_List(
{this.compId,
this.compType,
this.compStatus,
this.compRegdate,
this.complaintNote,
this.techName,
this.createdBy});
C_List({
this.compId,
this.compType,
this.compStatus,
this.compRegdate,
this.complaintNote,
this.techName,
this.createdBy,
});
C_List.fromJson(Map<String, dynamic> json) {
compId = json['comp_id'];
......@@ -56,14 +57,14 @@ class C_List {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['comp_id'] = this.compId;
data['comp_type'] = this.compType;
data['comp_status'] = this.compStatus;
data['comp_regdate'] = this.compRegdate;
data['complaint_note'] = this.complaintNote;
data['tech_name'] = this.techName;
data['created_by'] = this.createdBy;
final Map<String, dynamic> data = <String, dynamic>{};
data['comp_id'] = compId;
data['comp_type'] = compType;
data['comp_status'] = compStatus;
data['comp_regdate'] = compRegdate;
data['complaint_note'] = complaintNote;
data['tech_name'] = techName;
data['created_by'] = createdBy;
return data;
}
}
......@@ -4,26 +4,31 @@ class attendanceRequestDetailsResponse {
String? message;
int? sessionExists;
attendanceRequestDetailsResponse(
{this.requestDetails, this.error, this.message, this.sessionExists});
attendanceRequestDetailsResponse({
this.requestDetails,
this.error,
this.message,
this.sessionExists,
});
attendanceRequestDetailsResponse.fromJson(Map<String, dynamic> json) {
requestDetails = json['request_details'] != null
? new RequestDetails.fromJson(json['request_details'])
: null;
requestDetails =
json['request_details'] != null
? RequestDetails.fromJson(json['request_details'])
: null;
error = json['error'];
message = json['message'];
sessionExists = json['session_exists'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.requestDetails != null) {
data['request_details'] = this.requestDetails!.toJson();
final Map<String, dynamic> data = <String, dynamic>{};
if (requestDetails != null) {
data['request_details'] = requestDetails!.toJson();
}
data['error'] = this.error;
data['message'] = this.message;
data['session_exists'] = this.sessionExists;
data['error'] = error;
data['message'] = message;
data['session_exists'] = sessionExists;
return data;
}
}
......@@ -52,30 +57,30 @@ class RequestDetails {
String? checkOutLocation;
String? location;
RequestDetails(
{this.id,
this.attendanceType,
this.type,
this.date,
this.checkInType,
this.checkInTime,
this.chechOutType,
this.checkOutTime,
this.status,
this.requestedDatetime,
this.createdEmpName,
this.employeeName,
this.level1Remarks,
this.level1EmpName,
this.level2Remarks,
this.checkInProofDirFilePath,
this.checkOutProofDirFilePath,
this.level2EmpName,
this.note,
this.checkInLocation,
this.checkOutLocation,
this.location
});
RequestDetails({
this.id,
this.attendanceType,
this.type,
this.date,
this.checkInType,
this.checkInTime,
this.chechOutType,
this.checkOutTime,
this.status,
this.requestedDatetime,
this.createdEmpName,
this.employeeName,
this.level1Remarks,
this.level1EmpName,
this.level2Remarks,
this.checkInProofDirFilePath,
this.checkOutProofDirFilePath,
this.level2EmpName,
this.note,
this.checkInLocation,
this.checkOutLocation,
this.location,
});
RequestDetails.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -103,29 +108,29 @@ class RequestDetails {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['attendance_type'] = this.attendanceType;
data['type'] = this.type;
data['date'] = this.date;
data['check_in_type'] = this.checkInType;
data['check_in_time'] = this.checkInTime;
data['chech_out_type'] = this.chechOutType;
data['check_out_time'] = this.checkOutTime;
data['status'] = this.status;
data['requested_datetime'] = this.requestedDatetime;
data['created_emp_name'] = this.createdEmpName;
data['employee_name'] = this.employeeName;
data['level1_remarks'] = this.level1Remarks;
data['level1_emp_name'] = this.level1EmpName;
data['level2_remarks'] = this.level2Remarks;
data['check_in_proof_dir_file_path'] = this.checkInProofDirFilePath;
data['check_out_proof_dir_file_path'] = this.checkOutProofDirFilePath;
data['level2_emp_name'] = this.level2EmpName;
data['note'] = this.note;
data['check_in_location'] = this.checkInLocation;
data['check_out_location'] = this.location;
data['location'] = this.location;
final Map<String, dynamic> data = Map<String, dynamic>();
data['id'] = id;
data['attendance_type'] = attendanceType;
data['type'] = type;
data['date'] = date;
data['check_in_type'] = checkInType;
data['check_in_time'] = checkInTime;
data['chech_out_type'] = chechOutType;
data['check_out_time'] = checkOutTime;
data['status'] = status;
data['requested_datetime'] = requestedDatetime;
data['created_emp_name'] = createdEmpName;
data['employee_name'] = employeeName;
data['level1_remarks'] = level1Remarks;
data['level1_emp_name'] = level1EmpName;
data['level2_remarks'] = level2Remarks;
data['check_in_proof_dir_file_path'] = checkInProofDirFilePath;
data['check_out_proof_dir_file_path'] = checkOutProofDirFilePath;
data['level2_emp_name'] = level2EmpName;
data['note'] = note;
data['check_in_location'] = checkInLocation;
data['check_out_location'] = location;
data['location'] = location;
return data;
}
}
......@@ -4,14 +4,18 @@ class attendanceRequestListResponse {
String? message;
int? sessionExists;
attendanceRequestListResponse(
{this.requestList, this.error, this.message, this.sessionExists});
attendanceRequestListResponse({
this.requestList,
this.error,
this.message,
this.sessionExists,
});
attendanceRequestListResponse.fromJson(Map<String, dynamic> json) {
if (json['request_list'] != null) {
requestList = <RequestList>[];
json['request_list'].forEach((v) {
requestList!.add(new RequestList.fromJson(v));
requestList!.add(RequestList.fromJson(v));
});
}
error = json['error'];
......@@ -20,13 +24,13 @@ class attendanceRequestListResponse {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.requestList != null) {
data['request_list'] = this.requestList!.map((v) => v.toJson()).toList();
final Map<String, dynamic> data = <String, dynamic>{};
if (requestList != null) {
data['request_list'] = requestList!.map((v) => v.toJson()).toList();
}
data['error'] = this.error;
data['message'] = this.message;
data['session_exists'] = this.sessionExists;
data['error'] = error;
data['message'] = message;
data['session_exists'] = sessionExists;
return data;
}
}
......@@ -44,19 +48,19 @@ class RequestList {
String? requestedDatetime;
String? employeeName;
RequestList(
{this.id,
this.attendanceType,
this.type,
this.date,
this.checkInType,
this.checkInTime,
this.chechOutType,
this.checkOutTime,
this.status,
this.requestedDatetime,
this.employeeName,
});
RequestList({
this.id,
this.attendanceType,
this.type,
this.date,
this.checkInType,
this.checkInTime,
this.chechOutType,
this.checkOutTime,
this.status,
this.requestedDatetime,
this.employeeName,
});
RequestList.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -73,18 +77,18 @@ class RequestList {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['attendance_type'] = this.attendanceType;
data['type'] = this.type;
data['date'] = this.date;
data['check_in_type'] = this.checkInType;
data['check_in_time'] = this.checkInTime;
data['chech_out_type'] = this.chechOutType;
data['check_out_time'] = this.checkOutTime;
data['status'] = this.status;
data['requested_datetime'] = this.requestedDatetime;
data['employee_name'] = this.employeeName;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['attendance_type'] = attendanceType;
data['type'] = type;
data['date'] = date;
data['check_in_type'] = checkInType;
data['check_in_time'] = checkInTime;
data['chech_out_type'] = chechOutType;
data['check_out_time'] = checkOutTime;
data['status'] = status;
data['requested_datetime'] = requestedDatetime;
data['employee_name'] = employeeName;
return data;
}
}
......@@ -4,15 +4,19 @@ class hrmAccessiblePagesResponse {
String? message;
int? sessionExists;
hrmAccessiblePagesResponse(
{this.error, this.pagesAccessible, this.message, this.sessionExists});
hrmAccessiblePagesResponse({
this.error,
this.pagesAccessible,
this.message,
this.sessionExists,
});
hrmAccessiblePagesResponse.fromJson(Map<String, dynamic> json) {
error = json['error'];
if (json['pages_accessible'] != null) {
pagesAccessible = <PagesAccessible>[];
json['pages_accessible'].forEach((v) {
pagesAccessible!.add(new PagesAccessible.fromJson(v));
pagesAccessible!.add(PagesAccessible.fromJson(v));
});
}
message = json['message'];
......@@ -20,14 +24,14 @@ class hrmAccessiblePagesResponse {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['error'] = this.error;
if (this.pagesAccessible != null) {
final Map<String, dynamic> data = <String, dynamic>{};
data['error'] = error;
if (pagesAccessible != null) {
data['pages_accessible'] =
this.pagesAccessible!.map((v) => v.toJson()).toList();
pagesAccessible!.map((v) => v.toJson()).toList();
}
data['message'] = this.message;
data['session_exists'] = this.sessionExists;
data['message'] = message;
data['session_exists'] = sessionExists;
return data;
}
}
......@@ -46,10 +50,10 @@ class PagesAccessible {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['page_name'] = this.pageName;
data['mode'] = this.mode;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['page_name'] = pageName;
data['mode'] = mode;
return data;
}
}
......@@ -4,26 +4,31 @@ class jobDescriptionResponse {
String? message;
int? sessionExists;
jobDescriptionResponse(
{this.jobDescription, this.error, this.message, this.sessionExists});
jobDescriptionResponse({
this.jobDescription,
this.error,
this.message,
this.sessionExists,
});
jobDescriptionResponse.fromJson(Map<String, dynamic> json) {
jobDescription = json['job_description'] != null
? new JobDescription.fromJson(json['job_description'])
: null;
jobDescription =
json['job_description'] != null
? JobDescription.fromJson(json['job_description'])
: null;
error = json['error'];
message = json['message'];
sessionExists = json['session_exists'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.jobDescription != null) {
data['job_description'] = this.jobDescription!.toJson();
final Map<String, dynamic> data = <String, dynamic>{};
if (jobDescription != null) {
data['job_description'] = jobDescription!.toJson();
}
data['error'] = this.error;
data['message'] = this.message;
data['session_exists'] = this.sessionExists;
data['error'] = error;
data['message'] = message;
data['session_exists'] = sessionExists;
return data;
}
}
......@@ -42,10 +47,10 @@ class JobDescription {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['name'] = this.name;
data['job_description'] = this.jobDescription;
data['id'] = this.id;
final Map<String, dynamic> data = <String, dynamic>{};
data['name'] = name;
data['job_description'] = jobDescription;
data['id'] = id;
return data;
}
}
......@@ -4,26 +4,31 @@ class leaveApplicationDetailsResponse {
String? message;
int? sessionExists;
leaveApplicationDetailsResponse(
{this.requestDetails, this.error, this.message, this.sessionExists});
leaveApplicationDetailsResponse({
this.requestDetails,
this.error,
this.message,
this.sessionExists,
});
leaveApplicationDetailsResponse.fromJson(Map<String, dynamic> json) {
requestDetails = json['request_details'] != null
? new RequestDetails.fromJson(json['request_details'])
: null;
requestDetails =
json['request_details'] != null
? RequestDetails.fromJson(json['request_details'])
: null;
error = json['error'];
message = json['message'];
sessionExists = json['session_exists'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.requestDetails != null) {
data['request_details'] = this.requestDetails!.toJson();
final Map<String, dynamic> data = <String, dynamic>{};
if (requestDetails != null) {
data['request_details'] = requestDetails!.toJson();
}
data['error'] = this.error;
data['message'] = this.message;
data['session_exists'] = this.sessionExists;
data['error'] = error;
data['message'] = message;
data['session_exists'] = sessionExists;
return data;
}
}
......@@ -43,20 +48,21 @@ class RequestDetails {
String? approvedDate;
String? approvalRemarks;
RequestDetails(
{this.id,
this.appliedDate,
this.fromDate,
this.toDate,
this.fromTime,
this.toTime,
this.reason,
this.leaveType,
this.status,
this.requestedTo,
this.approvedBy,
this.approvedDate,
this.approvalRemarks});
RequestDetails({
this.id,
this.appliedDate,
this.fromDate,
this.toDate,
this.fromTime,
this.toTime,
this.reason,
this.leaveType,
this.status,
this.requestedTo,
this.approvedBy,
this.approvedDate,
this.approvalRemarks,
});
RequestDetails.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -75,20 +81,20 @@ class RequestDetails {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['applied_date'] = this.appliedDate;
data['from_date'] = this.fromDate;
data['to_date'] = this.toDate;
data['from_time'] = this.fromTime;
data['to_time'] = this.toTime;
data['reason'] = this.reason;
data['leave_type'] = this.leaveType;
data['status'] = this.status;
data['requested_to'] = this.requestedTo;
data['approved_by'] = this.approvedBy;
data['approved_date'] = this.approvedDate;
data['approval_remarks'] = this.approvalRemarks;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['applied_date'] = appliedDate;
data['from_date'] = fromDate;
data['to_date'] = toDate;
data['from_time'] = fromTime;
data['to_time'] = toTime;
data['reason'] = reason;
data['leave_type'] = leaveType;
data['status'] = status;
data['requested_to'] = requestedTo;
data['approved_by'] = approvedBy;
data['approved_date'] = approvedDate;
data['approval_remarks'] = approvalRemarks;
return data;
}
}
......@@ -4,14 +4,18 @@ class leaveApplicationLIstResponse {
String? message;
int? sessionExists;
leaveApplicationLIstResponse(
{this.requestList, this.error, this.message, this.sessionExists});
leaveApplicationLIstResponse({
this.requestList,
this.error,
this.message,
this.sessionExists,
});
leaveApplicationLIstResponse.fromJson(Map<String, dynamic> json) {
if (json['request_list'] != null) {
requestList = <RequestList>[];
json['request_list'].forEach((v) {
requestList!.add(new RequestList.fromJson(v));
requestList!.add(RequestList.fromJson(v));
});
}
error = json['error'];
......@@ -20,13 +24,13 @@ class leaveApplicationLIstResponse {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.requestList != null) {
data['request_list'] = this.requestList!.map((v) => v.toJson()).toList();
final Map<String, dynamic> data = <String, dynamic>{};
if (requestList != null) {
data['request_list'] = requestList!.map((v) => v.toJson()).toList();
}
data['error'] = this.error;
data['message'] = this.message;
data['session_exists'] = this.sessionExists;
data['error'] = error;
data['message'] = message;
data['session_exists'] = sessionExists;
return data;
}
}
......@@ -41,9 +45,13 @@ class RequestList {
String? rowColor;
String? employeeName;
RequestList(
{this.id, this.appliedDate, this.fromPeriod, this.toPeriod, this.status});
RequestList({
this.id,
this.appliedDate,
this.fromPeriod,
this.toPeriod,
this.status,
});
RequestList.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -57,15 +65,15 @@ class RequestList {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['applied_date'] = this.appliedDate;
data['from_period'] = this.fromPeriod;
data['to_period'] = this.toPeriod;
data['status'] = this.status;
data["leave_type"] = this.leaveType;
data["row_colur"] = this.rowColor;
data["employee_name"] = this.employeeName;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['applied_date'] = appliedDate;
data['from_period'] = fromPeriod;
data['to_period'] = toPeriod;
data['status'] = status;
data["leave_type"] = leaveType;
data["row_colur"] = rowColor;
data["employee_name"] = employeeName;
return data;
}
}
......@@ -7,19 +7,21 @@ class rewardListResponse {
String? message;
int? sessionExists;
rewardListResponse(
{this.rewardsList,
this.achievedAmount,
this.disbursedAmount,
this.balanceAmount,
this.error,
this.message,
this.sessionExists});
rewardListResponse({
this.rewardsList,
this.achievedAmount,
this.disbursedAmount,
this.balanceAmount,
this.error,
this.message,
this.sessionExists,
});
rewardListResponse.fromJson(Map<String, dynamic> json) {
rewardsList = json['rewards_list'] != null
? new RewardsList.fromJson(json['rewards_list'])
: null;
rewardsList =
json['rewards_list'] != null
? RewardsList.fromJson(json['rewards_list'])
: null;
achievedAmount = json['achieved_amount'];
disbursedAmount = json['disbursed_amount'];
balanceAmount = json['balance_amount'];
......@@ -29,16 +31,16 @@ class rewardListResponse {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.rewardsList != null) {
data['rewards_list'] = this.rewardsList!.toJson();
final Map<String, dynamic> data = <String, dynamic>{};
if (rewardsList != null) {
data['rewards_list'] = rewardsList!.toJson();
}
data['achieved_amount'] = this.achievedAmount;
data['disbursed_amount'] = this.disbursedAmount;
data['balance_amount'] = this.balanceAmount;
data['error'] = this.error;
data['message'] = this.message;
data['session_exists'] = this.sessionExists;
data['achieved_amount'] = achievedAmount;
data['disbursed_amount'] = disbursedAmount;
data['balance_amount'] = balanceAmount;
data['error'] = error;
data['message'] = message;
data['session_exists'] = sessionExists;
return data;
}
}
......@@ -60,22 +62,23 @@ class RewardsList {
String? employeeName;
String? entryName;
RewardsList(
{this.id,
this.empId,
this.description,
this.type,
this.cAmount,
this.dAmount,
this.enteredBy,
this.isApproved,
this.approvedBy,
this.approvedDatetime,
this.updatedDatetime,
this.isExist,
this.dateTime,
this.employeeName,
this.entryName});
RewardsList({
this.id,
this.empId,
this.description,
this.type,
this.cAmount,
this.dAmount,
this.enteredBy,
this.isApproved,
this.approvedBy,
this.approvedDatetime,
this.updatedDatetime,
this.isExist,
this.dateTime,
this.employeeName,
this.entryName,
});
RewardsList.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -96,22 +99,22 @@ class RewardsList {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['emp_id'] = this.empId;
data['description'] = this.description;
data['type'] = this.type;
data['c_amount'] = this.cAmount;
data['d_amount'] = this.dAmount;
data['entered_by'] = this.enteredBy;
data['is_approved'] = this.isApproved;
data['approved_by'] = this.approvedBy;
data['approved_datetime'] = this.approvedDatetime;
data['updated_datetime'] = this.updatedDatetime;
data['is_exist'] = this.isExist;
data['date_time'] = this.dateTime;
data['employee_name'] = this.employeeName;
data['entry_name'] = this.entryName;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['emp_id'] = empId;
data['description'] = description;
data['type'] = type;
data['c_amount'] = cAmount;
data['d_amount'] = dAmount;
data['entered_by'] = enteredBy;
data['is_approved'] = isApproved;
data['approved_by'] = approvedBy;
data['approved_datetime'] = approvedDatetime;
data['updated_datetime'] = updatedDatetime;
data['is_exist'] = isExist;
data['date_time'] = dateTime;
data['employee_name'] = employeeName;
data['entry_name'] = entryName;
return data;
}
}
......@@ -6,13 +6,14 @@ class tourExpensesAddViewResponse {
String? message;
int? sessionExists;
tourExpensesAddViewResponse(
{this.daAmount,
this.tourType,
this.travelType,
this.error,
this.message,
this.sessionExists});
tourExpensesAddViewResponse({
this.daAmount,
this.tourType,
this.travelType,
this.error,
this.message,
this.sessionExists,
});
tourExpensesAddViewResponse.fromJson(Map<String, dynamic> json) {
daAmount = json['da_amount'].cast<int>();
......@@ -24,13 +25,13 @@ class tourExpensesAddViewResponse {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['da_amount'] = this.daAmount;
data['tour_type'] = this.tourType;
data['travel_type'] = this.travelType;
data['error'] = this.error;
data['message'] = this.message;
data['session_exists'] = this.sessionExists;
final Map<String, dynamic> data = <String, dynamic>{};
data['da_amount'] = daAmount;
data['tour_type'] = tourType;
data['travel_type'] = travelType;
data['error'] = error;
data['message'] = message;
data['session_exists'] = sessionExists;
return data;
}
}
......@@ -8,39 +8,42 @@ class tourExpensesDetailsResponse {
String? message;
int? sessionExists;
tourExpensesDetailsResponse(
{this.requestDetails,
this.tourExpenses,
this.travelExpenses,
this.hotelExpenses,
this.otherExpenses,
this.error,
this.message,
this.sessionExists});
tourExpensesDetailsResponse({
this.requestDetails,
this.tourExpenses,
this.travelExpenses,
this.hotelExpenses,
this.otherExpenses,
this.error,
this.message,
this.sessionExists,
});
tourExpensesDetailsResponse.fromJson(Map<String, dynamic> json) {
requestDetails = json['request_details'] != null
? new RequestDetails.fromJson(json['request_details'])
: null;
tourExpenses = json['tour_expenses'] != null
? new TourExpenses.fromJson(json['tour_expenses'])
: null;
requestDetails =
json['request_details'] != null
? RequestDetails.fromJson(json['request_details'])
: null;
tourExpenses =
json['tour_expenses'] != null
? TourExpenses.fromJson(json['tour_expenses'])
: null;
if (json['travel_expenses'] != null) {
travelExpenses = <TravelExpenses>[];
json['travel_expenses'].forEach((v) {
travelExpenses!.add(new TravelExpenses.fromJson(v));
travelExpenses!.add(TravelExpenses.fromJson(v));
});
}
if (json['hotel_expenses'] != null) {
hotelExpenses = <HotelExpenses>[];
json['hotel_expenses'].forEach((v) {
hotelExpenses!.add(new HotelExpenses.fromJson(v));
hotelExpenses!.add(HotelExpenses.fromJson(v));
});
}
if (json['other_expenses'] != null) {
otherExpenses = <OtherExpenses>[];
json['other_expenses'].forEach((v) {
otherExpenses!.add(new OtherExpenses.fromJson(v));
otherExpenses!.add(OtherExpenses.fromJson(v));
});
}
error = json['error'];
......@@ -49,28 +52,25 @@ class tourExpensesDetailsResponse {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.requestDetails != null) {
data['request_details'] = this.requestDetails!.toJson();
final Map<String, dynamic> data = <String, dynamic>{};
if (requestDetails != null) {
data['request_details'] = requestDetails!.toJson();
}
if (this.tourExpenses != null) {
data['tour_expenses'] = this.tourExpenses!.toJson();
if (tourExpenses != null) {
data['tour_expenses'] = tourExpenses!.toJson();
}
if (this.travelExpenses != null) {
data['travel_expenses'] =
this.travelExpenses!.map((v) => v.toJson()).toList();
if (travelExpenses != null) {
data['travel_expenses'] = travelExpenses!.map((v) => v.toJson()).toList();
}
if (this.hotelExpenses != null) {
data['hotel_expenses'] =
this.hotelExpenses!.map((v) => v.toJson()).toList();
if (hotelExpenses != null) {
data['hotel_expenses'] = hotelExpenses!.map((v) => v.toJson()).toList();
}
if (this.otherExpenses != null) {
data['other_expenses'] =
this.otherExpenses!.map((v) => v.toJson()).toList();
if (otherExpenses != null) {
data['other_expenses'] = otherExpenses!.map((v) => v.toJson()).toList();
}
data['error'] = this.error;
data['message'] = this.message;
data['session_exists'] = this.sessionExists;
data['error'] = error;
data['message'] = message;
data['session_exists'] = sessionExists;
return data;
}
}
......@@ -93,27 +93,28 @@ class RequestDetails {
String? hrApprovedBy;
String? hrApprovedAmount;
String? hrRemarks;
Null? hrApprovedDate;
Null hrApprovedDate;
RequestDetails(
{this.id,
this.employeeName,
this.placeOfVisit,
this.appliedDate,
this.fromDate,
this.toDate,
this.type,
this.appliedAmount,
this.approvedAmount,
this.approvalStatus,
this.tlApprovedBy,
this.tlApprovedAmount,
this.tlRemarks,
this.tlApprovedDate,
this.hrApprovedBy,
this.hrApprovedAmount,
this.hrRemarks,
this.hrApprovedDate});
RequestDetails({
this.id,
this.employeeName,
this.placeOfVisit,
this.appliedDate,
this.fromDate,
this.toDate,
this.type,
this.appliedAmount,
this.approvedAmount,
this.approvalStatus,
this.tlApprovedBy,
this.tlApprovedAmount,
this.tlRemarks,
this.tlApprovedDate,
this.hrApprovedBy,
this.hrApprovedAmount,
this.hrRemarks,
this.hrApprovedDate,
});
RequestDetails.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -137,25 +138,25 @@ class RequestDetails {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['employee_name'] = this.employeeName;
data['place_of_visit'] = this.placeOfVisit;
data['applied_date'] = this.appliedDate;
data['from_date'] = this.fromDate;
data['to_date'] = this.toDate;
data['type'] = this.type;
data['applied_amount'] = this.appliedAmount;
data['approved_amount'] = this.approvedAmount;
data['approval_status'] = this.approvalStatus;
data['tl_approved_by'] = this.tlApprovedBy;
data['tl_approved_amount'] = this.tlApprovedAmount;
data['tl_remarks'] = this.tlRemarks;
data['tl_approved_date'] = this.tlApprovedDate;
data['hr_approved_by'] = this.hrApprovedBy;
data['hr_approved_amount'] = this.hrApprovedAmount;
data['hr_remarks'] = this.hrRemarks;
data['hr_approved_date'] = this.hrApprovedDate;
final Map<String, dynamic> data = Map<String, dynamic>();
data['id'] = id;
data['employee_name'] = employeeName;
data['place_of_visit'] = placeOfVisit;
data['applied_date'] = appliedDate;
data['from_date'] = fromDate;
data['to_date'] = toDate;
data['type'] = type;
data['applied_amount'] = appliedAmount;
data['approved_amount'] = approvedAmount;
data['approval_status'] = approvalStatus;
data['tl_approved_by'] = tlApprovedBy;
data['tl_approved_amount'] = tlApprovedAmount;
data['tl_remarks'] = tlRemarks;
data['tl_approved_date'] = tlApprovedDate;
data['hr_approved_by'] = hrApprovedBy;
data['hr_approved_amount'] = hrApprovedAmount;
data['hr_remarks'] = hrRemarks;
data['hr_approved_date'] = hrApprovedDate;
return data;
}
}
......@@ -169,14 +170,15 @@ class TourExpenses {
String? toDate;
String? extraNote;
TourExpenses(
{this.placeOfVisit,
this.da,
this.type,
this.appliedAmount,
this.fromDate,
this.toDate,
this.extraNote});
TourExpenses({
this.placeOfVisit,
this.da,
this.type,
this.appliedAmount,
this.fromDate,
this.toDate,
this.extraNote,
});
TourExpenses.fromJson(Map<String, dynamic> json) {
placeOfVisit = json['place_of_visit'];
......@@ -189,14 +191,14 @@ class TourExpenses {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['place_of_visit'] = this.placeOfVisit;
data['da'] = this.da;
data['type'] = this.type;
data['applied_amount'] = this.appliedAmount;
data['from_date'] = this.fromDate;
data['to_date'] = this.toDate;
data['extra_note'] = this.extraNote;
final Map<String, dynamic> data = <String, dynamic>{};
data['place_of_visit'] = placeOfVisit;
data['da'] = da;
data['type'] = type;
data['applied_amount'] = appliedAmount;
data['from_date'] = fromDate;
data['to_date'] = toDate;
data['extra_note'] = extraNote;
return data;
}
}
......@@ -209,13 +211,14 @@ class TravelExpenses {
String? travelBill;
String? imageDirFilePath;
TravelExpenses(
{this.froma,
this.toa,
this.travelType,
this.fare,
this.travelBill,
this.imageDirFilePath});
TravelExpenses({
this.froma,
this.toa,
this.travelType,
this.fare,
this.travelBill,
this.imageDirFilePath,
});
TravelExpenses.fromJson(Map<String, dynamic> json) {
froma = json['froma'];
......@@ -227,13 +230,13 @@ class TravelExpenses {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['froma'] = this.froma;
data['toa'] = this.toa;
data['travel_type'] = this.travelType;
data['fare'] = this.fare;
data['travel_bill'] = this.travelBill;
data['image_dir_file_path'] = this.imageDirFilePath;
final Map<String, dynamic> data = <String, dynamic>{};
data['froma'] = froma;
data['toa'] = toa;
data['travel_type'] = travelType;
data['fare'] = fare;
data['travel_bill'] = travelBill;
data['image_dir_file_path'] = imageDirFilePath;
return data;
}
}
......@@ -245,12 +248,13 @@ class HotelExpenses {
String? amount;
String? imageDirFilePath;
HotelExpenses(
{this.hotelName,
this.fromDate,
this.toDate,
this.amount,
this.imageDirFilePath});
HotelExpenses({
this.hotelName,
this.fromDate,
this.toDate,
this.amount,
this.imageDirFilePath,
});
HotelExpenses.fromJson(Map<String, dynamic> json) {
hotelName = json['hotel_name'];
......@@ -261,12 +265,12 @@ class HotelExpenses {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['hotel_name'] = this.hotelName;
data['from_date'] = this.fromDate;
data['to_date'] = this.toDate;
data['amount'] = this.amount;
data['image_dir_file_path'] = this.imageDirFilePath;
final Map<String, dynamic> data = <String, dynamic>{};
data['hotel_name'] = hotelName;
data['from_date'] = fromDate;
data['to_date'] = toDate;
data['amount'] = amount;
data['image_dir_file_path'] = imageDirFilePath;
return data;
}
}
......@@ -277,11 +281,12 @@ class OtherExpenses {
String? otherDesc;
String? imageDirFilePath;
OtherExpenses(
{this.otherAmount,
this.otherDate,
this.otherDesc,
this.imageDirFilePath});
OtherExpenses({
this.otherAmount,
this.otherDate,
this.otherDesc,
this.imageDirFilePath,
});
OtherExpenses.fromJson(Map<String, dynamic> json) {
otherAmount = json['other_amount'];
......@@ -291,11 +296,11 @@ class OtherExpenses {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['other_amount'] = this.otherAmount;
data['other_date'] = this.otherDate;
data['other_desc'] = this.otherDesc;
data['image_dir_file_path'] = this.imageDirFilePath;
final Map<String, dynamic> data = <String, dynamic>{};
data['other_amount'] = otherAmount;
data['other_date'] = otherDate;
data['other_desc'] = otherDesc;
data['image_dir_file_path'] = imageDirFilePath;
return data;
}
}
......@@ -4,14 +4,18 @@ class tourExpensesListResponse {
String? message;
int? sessionExists;
tourExpensesListResponse(
{this.tourList, this.error, this.message, this.sessionExists});
tourExpensesListResponse({
this.tourList,
this.error,
this.message,
this.sessionExists,
});
tourExpensesListResponse.fromJson(Map<String, dynamic> json) {
if (json['tour_list'] != null) {
tourList = <TourList>[];
json['tour_list'].forEach((v) {
tourList!.add(new TourList.fromJson(v));
tourList!.add(TourList.fromJson(v));
});
}
error = json['error'];
......@@ -20,13 +24,13 @@ class tourExpensesListResponse {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.tourList != null) {
data['tour_list'] = this.tourList!.map((v) => v.toJson()).toList();
final Map<String, dynamic> data = <String, dynamic>{};
if (tourList != null) {
data['tour_list'] = tourList!.map((v) => v.toJson()).toList();
}
data['error'] = this.error;
data['message'] = this.message;
data['session_exists'] = this.sessionExists;
data['error'] = error;
data['message'] = message;
data['session_exists'] = sessionExists;
return data;
}
}
......@@ -42,16 +46,17 @@ class TourList {
String? approvedAmount;
String? approvalStatus;
TourList(
{this.id,
this.placeOfVisit,
this.appliedDate,
this.fromDate,
this.toDate,
this.type,
this.appliedAmount,
this.approvedAmount,
this.approvalStatus});
TourList({
this.id,
this.placeOfVisit,
this.appliedDate,
this.fromDate,
this.toDate,
this.type,
this.appliedAmount,
this.approvedAmount,
this.approvalStatus,
});
TourList.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -66,16 +71,16 @@ class TourList {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['place_of_visit'] = this.placeOfVisit;
data['applied_date'] = this.appliedDate;
data['from_date'] = this.fromDate;
data['to_date'] = this.toDate;
data['type'] = this.type;
data['applied_amount'] = this.appliedAmount;
data['approved_amount'] = this.approvedAmount;
data['approval_status'] = this.approvalStatus;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['place_of_visit'] = placeOfVisit;
data['applied_date'] = appliedDate;
data['from_date'] = fromDate;
data['to_date'] = toDate;
data['type'] = type;
data['applied_amount'] = appliedAmount;
data['approved_amount'] = approvedAmount;
data['approval_status'] = approvalStatus;
return data;
}
}
......@@ -8,15 +8,16 @@ class ogresponse {
String? message;
int? sessionExists;
ogresponse(
{this.id,
this.name,
this.title,
this.profile,
this.children,
this.error,
this.message,
this.sessionExists});
ogresponse({
this.id,
this.name,
this.title,
this.profile,
this.children,
this.error,
this.message,
this.sessionExists,
});
ogresponse.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -26,7 +27,7 @@ class ogresponse {
if (json['children'] != null) {
children = <Children>[];
json['children'].forEach((v) {
children!.add(new Children.fromJson(v));
children!.add(Children.fromJson(v));
});
}
error = json['error'];
......@@ -35,17 +36,17 @@ class ogresponse {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['name'] = this.name;
data['title'] = this.title;
data['profile'] = this.profile;
if (this.children != null) {
data['children'] = this.children!.map((v) => v.toJson()).toList();
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['name'] = name;
data['title'] = title;
data['profile'] = profile;
if (children != null) {
data['children'] = children!.map((v) => v.toJson()).toList();
}
data['error'] = this.error;
data['message'] = this.message;
data['session_exists'] = this.sessionExists;
data['error'] = error;
data['message'] = message;
data['session_exists'] = sessionExists;
return data;
}
}
......@@ -67,21 +68,20 @@ class Children {
if (json['children'] != null) {
children = <Children>[];
json['children'].forEach((v) {
children!.add(new Children.fromJson(v));
children!.add(Children.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['name'] = this.name;
data['title'] = this.title;
data['profile'] = this.profile;
if (this.children != null) {
data['children'] = this.children!.map((v) => v.toJson()).toList();
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['name'] = name;
data['title'] = title;
data['profile'] = profile;
if (children != null) {
data['children'] = children!.map((v) => v.toJson()).toList();
}
return data;
}
}
......@@ -30,37 +30,38 @@ class loadGeneratorDetailsResponse {
List<ScheduleList>? scheduleList;
int? sessionExists;
loadGeneratorDetailsResponse(
{this.error,
this.genId,
this.genHashId,
this.aname,
this.emodel,
this.spname,
this.mob1,
this.mob2,
this.mail,
this.cname,
this.engineNo,
this.dateOfEngineSale,
this.altNo,
this.btryNo,
this.dgSetNo,
this.state,
this.district,
this.address,
this.loc,
this.dispDate,
this.cmsngDate,
this.status,
this.complaintCategoryList,
this.complaintTypeList,
this.complaintDescriptionList,
this.nextService,
this.contactList,
this.complaintList,
this.scheduleList,
this.sessionExists});
loadGeneratorDetailsResponse({
this.error,
this.genId,
this.genHashId,
this.aname,
this.emodel,
this.spname,
this.mob1,
this.mob2,
this.mail,
this.cname,
this.engineNo,
this.dateOfEngineSale,
this.altNo,
this.btryNo,
this.dgSetNo,
this.state,
this.district,
this.address,
this.loc,
this.dispDate,
this.cmsngDate,
this.status,
this.complaintCategoryList,
this.complaintTypeList,
this.complaintDescriptionList,
this.nextService,
this.contactList,
this.complaintList,
this.scheduleList,
this.sessionExists,
});
loadGeneratorDetailsResponse.fromJson(Map<String, dynamic> json) {
error = json['error'];
......@@ -88,92 +89,90 @@ class loadGeneratorDetailsResponse {
if (json['complaint_category_list'] != null) {
complaintCategoryList = <ComplaintCategoryList>[];
json['complaint_category_list'].forEach((v) {
complaintCategoryList!.add(new ComplaintCategoryList.fromJson(v));
complaintCategoryList!.add(ComplaintCategoryList.fromJson(v));
});
}
if (json['complaint_type_list'] != null) {
complaintTypeList = <ComplaintTypeList>[];
json['complaint_type_list'].forEach((v) {
complaintTypeList!.add(new ComplaintTypeList.fromJson(v));
complaintTypeList!.add(ComplaintTypeList.fromJson(v));
});
}
if (json['complaint_description_list'] != null) {
complaintDescriptionList = <ComplaintDescriptionList>[];
json['complaint_description_list'].forEach((v) {
complaintDescriptionList!.add(new ComplaintDescriptionList.fromJson(v));
complaintDescriptionList!.add(ComplaintDescriptionList.fromJson(v));
});
}
nextService = json['next_service'];
if (json['contact_list'] != null) {
contactList = <ContactList>[];
json['contact_list'].forEach((v) {
contactList!.add(new ContactList.fromJson(v));
contactList!.add(ContactList.fromJson(v));
});
}
if (json['complaint_list'] != null) {
complaintList = <ComplaintList>[];
json['complaint_list'].forEach((v) {
complaintList!.add(new ComplaintList.fromJson(v));
complaintList!.add(ComplaintList.fromJson(v));
});
}
if (json['schedule_list'] != null) {
scheduleList = <ScheduleList>[];
json['schedule_list'].forEach((v) {
scheduleList!.add(new ScheduleList.fromJson(v));
scheduleList!.add(ScheduleList.fromJson(v));
});
}
sessionExists = json['session_exists'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['error'] = this.error;
data['gen_id'] = this.genId;
data['gen_hash_id'] = this.genHashId;
data['aname'] = this.aname;
data['emodel'] = this.emodel;
data['spname'] = this.spname;
data['mob1'] = this.mob1;
data['mob2'] = this.mob2;
data['mail'] = this.mail;
data['cname'] = this.cname;
data['engine_no'] = this.engineNo;
data['date_of_engine_sale'] = this.dateOfEngineSale;
data['alt_no'] = this.altNo;
data['btry_no'] = this.btryNo;
data['dg_set_no'] = this.dgSetNo;
data['state'] = this.state;
data['district'] = this.district;
data['address'] = this.address;
data['loc'] = this.loc;
data['disp_date'] = this.dispDate;
data['cmsng_date'] = this.cmsngDate;
data['status'] = this.status;
if (this.complaintCategoryList != null) {
final Map<String, dynamic> data = <String, dynamic>{};
data['error'] = error;
data['gen_id'] = genId;
data['gen_hash_id'] = genHashId;
data['aname'] = aname;
data['emodel'] = emodel;
data['spname'] = spname;
data['mob1'] = mob1;
data['mob2'] = mob2;
data['mail'] = mail;
data['cname'] = cname;
data['engine_no'] = engineNo;
data['date_of_engine_sale'] = dateOfEngineSale;
data['alt_no'] = altNo;
data['btry_no'] = btryNo;
data['dg_set_no'] = dgSetNo;
data['state'] = state;
data['district'] = district;
data['address'] = address;
data['loc'] = loc;
data['disp_date'] = dispDate;
data['cmsng_date'] = cmsngDate;
data['status'] = status;
if (complaintCategoryList != null) {
data['complaint_category_list'] =
this.complaintCategoryList!.map((v) => v.toJson()).toList();
complaintCategoryList!.map((v) => v.toJson()).toList();
}
if (this.complaintTypeList != null) {
if (complaintTypeList != null) {
data['complaint_type_list'] =
this.complaintTypeList!.map((v) => v.toJson()).toList();
complaintTypeList!.map((v) => v.toJson()).toList();
}
if (this.complaintDescriptionList != null) {
if (complaintDescriptionList != null) {
data['complaint_description_list'] =
this.complaintDescriptionList!.map((v) => v.toJson()).toList();
complaintDescriptionList!.map((v) => v.toJson()).toList();
}
data['next_service'] = this.nextService;
if (this.contactList != null) {
data['contact_list'] = this.contactList!.map((v) => v.toJson()).toList();
data['next_service'] = nextService;
if (contactList != null) {
data['contact_list'] = contactList!.map((v) => v.toJson()).toList();
}
if (this.complaintList != null) {
data['complaint_list'] =
this.complaintList!.map((v) => v.toJson()).toList();
if (complaintList != null) {
data['complaint_list'] = complaintList!.map((v) => v.toJson()).toList();
}
if (this.scheduleList != null) {
data['schedule_list'] =
this.scheduleList!.map((v) => v.toJson()).toList();
if (scheduleList != null) {
data['schedule_list'] = scheduleList!.map((v) => v.toJson()).toList();
}
data['session_exists'] = this.sessionExists;
data['session_exists'] = sessionExists;
return data;
}
}
......@@ -190,9 +189,9 @@ class ComplaintCategoryList {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['name'] = this.name;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['name'] = name;
return data;
}
}
......@@ -205,13 +204,14 @@ class ContactList {
String? mail;
String? type;
ContactList(
{this.name,
this.designation,
this.mob1,
this.mob2,
this.mail,
this.type});
ContactList({
this.name,
this.designation,
this.mob1,
this.mob2,
this.mail,
this.type,
});
ContactList.fromJson(Map<String, dynamic> json) {
name = json['name'];
......@@ -223,13 +223,13 @@ class ContactList {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['name'] = this.name;
data['designation'] = this.designation;
data['mob1'] = this.mob1;
data['mob2'] = this.mob2;
data['mail'] = this.mail;
data['type'] = this.type;
final Map<String, dynamic> data = <String, dynamic>{};
data['name'] = name;
data['designation'] = designation;
data['mob1'] = mob1;
data['mob2'] = mob2;
data['mail'] = mail;
data['type'] = type;
return data;
}
}
......@@ -243,14 +243,15 @@ class ComplaintList {
String? openStatus;
String? createdDate;
ComplaintList(
{this.complaintId,
this.createdBy,
this.complaintTypeName,
this.technicianName,
this.complaintCategoryName,
this.openStatus,
this.createdDate});
ComplaintList({
this.complaintId,
this.createdBy,
this.complaintTypeName,
this.technicianName,
this.complaintCategoryName,
this.openStatus,
this.createdDate,
});
ComplaintList.fromJson(Map<String, dynamic> json) {
complaintId = json['complaint_id'];
......@@ -263,14 +264,14 @@ class ComplaintList {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['complaint_id'] = this.complaintId;
data['created_by'] = this.createdBy;
data['complaint_type_name'] = this.complaintTypeName;
data['technician_name'] = this.technicianName;
data['complaint_category_name'] = this.complaintCategoryName;
data['open_status'] = this.openStatus;
data['created_date'] = this.createdDate;
final Map<String, dynamic> data = <String, dynamic>{};
data['complaint_id'] = complaintId;
data['created_by'] = createdBy;
data['complaint_type_name'] = complaintTypeName;
data['technician_name'] = technicianName;
data['complaint_category_name'] = complaintCategoryName;
data['open_status'] = openStatus;
data['created_date'] = createdDate;
return data;
}
}
......@@ -288,18 +289,19 @@ class ScheduleList {
String? feedbackStatus;
String? createdDatetime;
ScheduleList(
{this.serviceScheduleId,
this.name,
this.complaintType,
this.complaintCategory,
this.complaintDescription,
this.scheduleManagerName,
this.complaintId,
this.dueDate,
this.status,
this.feedbackStatus,
this.createdDatetime});
ScheduleList({
this.serviceScheduleId,
this.name,
this.complaintType,
this.complaintCategory,
this.complaintDescription,
this.scheduleManagerName,
this.complaintId,
this.dueDate,
this.status,
this.feedbackStatus,
this.createdDatetime,
});
ScheduleList.fromJson(Map<String, dynamic> json) {
serviceScheduleId = json['service_schedule_id'];
......@@ -316,21 +318,22 @@ class ScheduleList {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['service_schedule_id'] = this.serviceScheduleId;
data['name'] = this.name;
data['complaint_type'] = this.complaintType;
data['complaint_category'] = this.complaintCategory;
data['complaint_description'] = this.complaintDescription;
data['schedule_manager_name'] = this.scheduleManagerName;
data['complaint_id'] = this.complaintId;
data['due_date'] = this.dueDate;
data['status'] = this.status;
data['feedback_status'] = this.feedbackStatus;
data['created_datetime'] = this.createdDatetime;
final Map<String, dynamic> data = <String, dynamic>{};
data['service_schedule_id'] = serviceScheduleId;
data['name'] = name;
data['complaint_type'] = complaintType;
data['complaint_category'] = complaintCategory;
data['complaint_description'] = complaintDescription;
data['schedule_manager_name'] = scheduleManagerName;
data['complaint_id'] = complaintId;
data['due_date'] = dueDate;
data['status'] = status;
data['feedback_status'] = feedbackStatus;
data['created_datetime'] = createdDatetime;
return data;
}
}
class ComplaintTypeList {
String? id;
String? name;
......@@ -343,12 +346,13 @@ class ComplaintTypeList {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['name'] = this.name;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['name'] = name;
return data;
}
}
class ComplaintDescriptionList {
String? id;
String? name;
......@@ -361,9 +365,9 @@ class ComplaintDescriptionList {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['name'] = this.name;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['name'] = name;
return data;
}
}
\ No newline at end of file
}
......@@ -3,14 +3,17 @@ class AddOrderPaymentSelectAccountResponse {
String? error;
String? message;
AddOrderPaymentSelectAccountResponse(
{this.accountList, this.error, this.message});
AddOrderPaymentSelectAccountResponse({
this.accountList,
this.error,
this.message,
});
AddOrderPaymentSelectAccountResponse.fromJson(Map<String, dynamic> json) {
if (json['account_list'] != null) {
accountList = <AccountList>[];
json['account_list'].forEach((v) {
accountList!.add(new AccountList.fromJson(v));
accountList!.add(AccountList.fromJson(v));
});
}
error = json['error'];
......@@ -18,12 +21,12 @@ class AddOrderPaymentSelectAccountResponse {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.accountList != null) {
data['account_list'] = this.accountList!.map((v) => v.toJson()).toList();
final Map<String, dynamic> data = <String, dynamic>{};
if (accountList != null) {
data['account_list'] = accountList!.map((v) => v.toJson()).toList();
}
data['error'] = this.error;
data['message'] = this.message;
data['error'] = error;
data['message'] = message;
return data;
}
}
......@@ -40,9 +43,9 @@ class AccountList {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['text'] = this.text;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['text'] = text;
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