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