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/crmModels/crmDashboardResponse.dart
View file @
7210793a
...
...
@@ -16,60 +16,59 @@ class crmDashboardResponse {
String
?
message
;
int
?
sessionExists
;
crmDashboardResponse
(
{
this
.
hotleads
,
this
.
pendingTasks
,
this
.
coldleads
,
this
.
warmleads
,
this
.
totalleads
,
this
.
openleads
,
this
.
visits
,
this
.
calls
,
this
.
quote
,
this
.
orderlost
,
this
.
norequirement
,
this
.
openEnquiries
,
this
.
nearbyLeads
,
this
.
error
,
this
.
message
,
this
.
sessionExists
});
crmDashboardResponse
({
this
.
hotleads
,
this
.
pendingTasks
,
this
.
coldleads
,
this
.
warmleads
,
this
.
totalleads
,
this
.
openleads
,
this
.
visits
,
this
.
calls
,
this
.
quote
,
this
.
orderlost
,
this
.
norequirement
,
this
.
openEnquiries
,
this
.
nearbyLeads
,
this
.
error
,
this
.
message
,
this
.
sessionExists
,
});
crmDashboardResponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
hotleads
=
json
[
'hotleads'
]
!=
null
?
new
Hotleads
.
fromJson
(
json
[
'hotleads'
])
:
null
;
pendingTasks
=
json
[
'pending_tasks'
]
!=
null
?
new
Hotleads
.
fromJson
(
json
[
'pending_tasks'
])
:
null
;
coldleads
=
json
[
'coldleads'
]
!=
null
?
new
Hotleads
.
fromJson
(
json
[
'coldleads'
])
:
null
;
warmleads
=
json
[
'warmleads'
]
!=
null
?
new
Hotleads
.
fromJson
(
json
[
'warmleads'
])
:
null
;
totalleads
=
json
[
'totalleads'
]
!=
null
?
new
Hotleads
.
fromJson
(
json
[
'totalleads'
])
:
null
;
openleads
=
json
[
'openleads'
]
!=
null
?
new
Hotleads
.
fromJson
(
json
[
'openleads'
])
:
null
;
visits
=
json
[
'visits'
]
!=
null
?
new
Hotleads
.
fromJson
(
json
[
'visits'
])
:
null
;
calls
=
json
[
'calls'
]
!=
null
?
new
Hotleads
.
fromJson
(
json
[
'calls'
])
:
null
;
quote
=
json
[
'quote'
]
!=
null
?
new
Hotleads
.
fromJson
(
json
[
'quote'
])
:
null
;
orderlost
=
json
[
'orderlost'
]
!=
null
?
new
Hotleads
.
fromJson
(
json
[
'orderlost'
])
:
null
;
norequirement
=
json
[
'norequirement'
]
!=
null
?
new
Hotleads
.
fromJson
(
json
[
'norequirement'
])
:
null
;
openEnquiries
=
json
[
'open_enquiries'
]
!=
null
?
new
Hotleads
.
fromJson
(
json
[
'open_enquiries'
])
:
null
;
hotleads
=
json
[
'hotleads'
]
!=
null
?
Hotleads
.
fromJson
(
json
[
'hotleads'
])
:
null
;
pendingTasks
=
json
[
'pending_tasks'
]
!=
null
?
Hotleads
.
fromJson
(
json
[
'pending_tasks'
])
:
null
;
coldleads
=
json
[
'coldleads'
]
!=
null
?
Hotleads
.
fromJson
(
json
[
'coldleads'
])
:
null
;
warmleads
=
json
[
'warmleads'
]
!=
null
?
Hotleads
.
fromJson
(
json
[
'warmleads'
])
:
null
;
totalleads
=
json
[
'totalleads'
]
!=
null
?
Hotleads
.
fromJson
(
json
[
'totalleads'
])
:
null
;
openleads
=
json
[
'openleads'
]
!=
null
?
Hotleads
.
fromJson
(
json
[
'openleads'
])
:
null
;
visits
=
json
[
'visits'
]
!=
null
?
Hotleads
.
fromJson
(
json
[
'visits'
])
:
null
;
calls
=
json
[
'calls'
]
!=
null
?
Hotleads
.
fromJson
(
json
[
'calls'
])
:
null
;
quote
=
json
[
'quote'
]
!=
null
?
Hotleads
.
fromJson
(
json
[
'quote'
])
:
null
;
orderlost
=
json
[
'orderlost'
]
!=
null
?
Hotleads
.
fromJson
(
json
[
'orderlost'
])
:
null
;
norequirement
=
json
[
'norequirement'
]
!=
null
?
Hotleads
.
fromJson
(
json
[
'norequirement'
])
:
null
;
openEnquiries
=
json
[
'open_enquiries'
]
!=
null
?
Hotleads
.
fromJson
(
json
[
'open_enquiries'
])
:
null
;
if
(
json
[
'nearby_leads'
]
!=
null
)
{
nearbyLeads
=
<
NearbyLeads
>[];
json
[
'nearby_leads'
].
forEach
((
v
)
{
nearbyLeads
!.
add
(
new
NearbyLeads
.
fromJson
(
v
));
nearbyLeads
!.
add
(
NearbyLeads
.
fromJson
(
v
));
});
}
error
=
json
[
'error'
];
...
...
@@ -78,49 +77,49 @@ class crmDashboardResponse {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
if
(
this
.
hotleads
!=
null
)
{
data
[
'hotleads'
]
=
this
.
hotleads
!.
toJson
();
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
if
(
hotleads
!=
null
)
{
data
[
'hotleads'
]
=
hotleads
!.
toJson
();
}
if
(
this
.
pendingTasks
!=
null
)
{
data
[
'pending_tasks'
]
=
this
.
pendingTasks
!.
toJson
();
if
(
pendingTasks
!=
null
)
{
data
[
'pending_tasks'
]
=
pendingTasks
!.
toJson
();
}
if
(
this
.
coldleads
!=
null
)
{
data
[
'coldleads'
]
=
this
.
coldleads
!.
toJson
();
if
(
coldleads
!=
null
)
{
data
[
'coldleads'
]
=
coldleads
!.
toJson
();
}
if
(
this
.
warmleads
!=
null
)
{
data
[
'warmleads'
]
=
this
.
warmleads
!.
toJson
();
if
(
warmleads
!=
null
)
{
data
[
'warmleads'
]
=
warmleads
!.
toJson
();
}
if
(
this
.
totalleads
!=
null
)
{
data
[
'totalleads'
]
=
this
.
totalleads
!.
toJson
();
if
(
totalleads
!=
null
)
{
data
[
'totalleads'
]
=
totalleads
!.
toJson
();
}
if
(
this
.
openleads
!=
null
)
{
data
[
'openleads'
]
=
this
.
openleads
!.
toJson
();
if
(
openleads
!=
null
)
{
data
[
'openleads'
]
=
openleads
!.
toJson
();
}
if
(
this
.
visits
!=
null
)
{
data
[
'visits'
]
=
this
.
visits
!.
toJson
();
if
(
visits
!=
null
)
{
data
[
'visits'
]
=
visits
!.
toJson
();
}
if
(
this
.
calls
!=
null
)
{
data
[
'calls'
]
=
this
.
calls
!.
toJson
();
if
(
calls
!=
null
)
{
data
[
'calls'
]
=
calls
!.
toJson
();
}
if
(
this
.
quote
!=
null
)
{
data
[
'quote'
]
=
this
.
quote
!.
toJson
();
if
(
quote
!=
null
)
{
data
[
'quote'
]
=
quote
!.
toJson
();
}
if
(
this
.
orderlost
!=
null
)
{
data
[
'orderlost'
]
=
this
.
orderlost
!.
toJson
();
if
(
orderlost
!=
null
)
{
data
[
'orderlost'
]
=
orderlost
!.
toJson
();
}
if
(
this
.
norequirement
!=
null
)
{
data
[
'norequirement'
]
=
this
.
norequirement
!.
toJson
();
if
(
norequirement
!=
null
)
{
data
[
'norequirement'
]
=
norequirement
!.
toJson
();
}
if
(
this
.
openEnquiries
!=
null
)
{
data
[
'open_enquiries'
]
=
this
.
openEnquiries
!.
toJson
();
if
(
openEnquiries
!=
null
)
{
data
[
'open_enquiries'
]
=
openEnquiries
!.
toJson
();
}
if
(
this
.
nearbyLeads
!=
null
)
{
data
[
'nearby_leads'
]
=
this
.
nearbyLeads
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
if
(
nearbyLeads
!=
null
)
{
data
[
'nearby_leads'
]
=
nearbyLeads
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
data
[
'error'
]
=
this
.
error
;
data
[
'message'
]
=
this
.
message
;
data
[
'session_exists'
]
=
this
.
sessionExists
;
data
[
'error'
]
=
error
;
data
[
'message'
]
=
message
;
data
[
'session_exists'
]
=
sessionExists
;
return
data
;
}
}
...
...
@@ -133,15 +132,14 @@ class Hotleads {
Hotleads
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
count
=
json
[
'count'
];
filter
=
json
[
'filter'
]
!=
null
?
new
Filter
.
fromJson
(
json
[
'filter'
])
:
null
;
filter
=
json
[
'filter'
]
!=
null
?
Filter
.
fromJson
(
json
[
'filter'
])
:
null
;
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'count'
]
=
this
.
count
;
if
(
this
.
filter
!=
null
)
{
data
[
'filter'
]
=
this
.
filter
!.
toJson
();
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'count'
]
=
count
;
if
(
filter
!=
null
)
{
data
[
'filter'
]
=
filter
!.
toJson
();
}
return
data
;
}
...
...
@@ -165,12 +163,12 @@ class Filter {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'page_name'
]
=
this
.
pageName
;
data
[
'mode'
]
=
this
.
mode
;
data
[
'open_status'
]
=
this
.
openStatus
;
data
[
'status'
]
=
this
.
status
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'page_name'
]
=
pageName
;
data
[
'mode'
]
=
mode
;
data
[
'open_status'
]
=
openStatus
;
data
[
'status'
]
=
status
;
return
data
;
}
}
...
...
@@ -202,32 +200,33 @@ class NearbyLeads {
String
?
email
;
String
?
distance
;
NearbyLeads
(
{
this
.
id
,
this
.
ownerId
,
this
.
accId
,
this
.
accManagerId
,
this
.
status
,
this
.
openStatus
,
this
.
date
,
this
.
closeDate
,
this
.
closereason
,
this
.
competitor
,
this
.
orderGainId
,
this
.
loc
,
this
.
isExists
,
this
.
createdDatetime
,
this
.
updatedDatetime
,
this
.
followupFunction
,
this
.
name
,
this
.
product
,
this
.
contName
,
this
.
address
,
this
.
mob1
,
this
.
mob2
,
this
.
tel
,
this
.
email
,
this
.
distance
});
NearbyLeads
({
this
.
id
,
this
.
ownerId
,
this
.
accId
,
this
.
accManagerId
,
this
.
status
,
this
.
openStatus
,
this
.
date
,
this
.
closeDate
,
this
.
closereason
,
this
.
competitor
,
this
.
orderGainId
,
this
.
loc
,
this
.
isExists
,
this
.
createdDatetime
,
this
.
updatedDatetime
,
this
.
followupFunction
,
this
.
name
,
this
.
product
,
this
.
contName
,
this
.
address
,
this
.
mob1
,
this
.
mob2
,
this
.
tel
,
this
.
email
,
this
.
distance
,
});
NearbyLeads
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
id
=
json
[
'id'
];
...
...
@@ -258,32 +257,32 @@ class NearbyLeads {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'owner_id'
]
=
this
.
ownerId
;
data
[
'acc_id'
]
=
this
.
accId
;
data
[
'acc_manager_id'
]
=
this
.
accManagerId
;
data
[
'status'
]
=
this
.
status
;
data
[
'open_status'
]
=
this
.
openStatus
;
data
[
'date'
]
=
this
.
date
;
data
[
'close_date'
]
=
this
.
closeDate
;
data
[
'closereason'
]
=
this
.
closereason
;
data
[
'competitor'
]
=
this
.
competitor
;
data
[
'order_gain_id'
]
=
this
.
orderGainId
;
data
[
'loc'
]
=
this
.
loc
;
data
[
'is_exists'
]
=
this
.
isExists
;
data
[
'created_datetime'
]
=
this
.
createdDatetime
;
data
[
'updated_datetime'
]
=
this
.
updatedDatetime
;
data
[
'followup_function'
]
=
this
.
followupFunction
;
data
[
'name'
]
=
this
.
name
;
data
[
'product'
]
=
this
.
product
;
data
[
'cont_name'
]
=
this
.
contName
;
data
[
'address'
]
=
this
.
address
;
data
[
'mob1'
]
=
this
.
mob1
;
data
[
'mob2'
]
=
this
.
mob2
;
data
[
'tel'
]
=
this
.
tel
;
data
[
'email'
]
=
this
.
email
;
data
[
'distance'
]
=
this
.
distance
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'owner_id'
]
=
ownerId
;
data
[
'acc_id'
]
=
accId
;
data
[
'acc_manager_id'
]
=
accManagerId
;
data
[
'status'
]
=
status
;
data
[
'open_status'
]
=
openStatus
;
data
[
'date'
]
=
date
;
data
[
'close_date'
]
=
closeDate
;
data
[
'closereason'
]
=
closereason
;
data
[
'competitor'
]
=
competitor
;
data
[
'order_gain_id'
]
=
orderGainId
;
data
[
'loc'
]
=
loc
;
data
[
'is_exists'
]
=
isExists
;
data
[
'created_datetime'
]
=
createdDatetime
;
data
[
'updated_datetime'
]
=
updatedDatetime
;
data
[
'followup_function'
]
=
followupFunction
;
data
[
'name'
]
=
name
;
data
[
'product'
]
=
product
;
data
[
'cont_name'
]
=
contName
;
data
[
'address'
]
=
address
;
data
[
'mob1'
]
=
mob1
;
data
[
'mob2'
]
=
mob2
;
data
[
'tel'
]
=
tel
;
data
[
'email'
]
=
email
;
data
[
'distance'
]
=
distance
;
return
data
;
}
}
lib/Models/crmModels/crmDownloadGenQuoteResponse.dart
View file @
7210793a
...
...
@@ -4,8 +4,12 @@ class crmDownloadGenQuoteResponse {
String
?
message
;
int
?
sessionExists
;
crmDownloadGenQuoteResponse
(
{
this
.
error
,
this
.
quoteFilepath
,
this
.
message
,
this
.
sessionExists
});
crmDownloadGenQuoteResponse
({
this
.
error
,
this
.
quoteFilepath
,
this
.
message
,
this
.
sessionExists
,
});
crmDownloadGenQuoteResponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
error
=
json
[
'error'
];
...
...
@@ -15,11 +19,11 @@ class crmDownloadGenQuoteResponse {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'error'
]
=
this
.
error
;
data
[
'quote_filepath'
]
=
this
.
quoteFilepath
;
data
[
'message'
]
=
this
.
message
;
data
[
'session_exists'
]
=
this
.
sessionExists
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'error'
]
=
error
;
data
[
'quote_filepath'
]
=
quoteFilepath
;
data
[
'message'
]
=
message
;
data
[
'session_exists'
]
=
sessionExists
;
return
data
;
}
}
lib/Models/crmModels/crmLeadDetailsEditAccountViewResponse.dart
View file @
7210793a
...
...
@@ -4,33 +4,38 @@ class crmLeadDetailsEditAccountViewResponse {
String
?
error
;
String
?
message
;
crmLeadDetailsEditAccountViewResponse
(
{
this
.
teams
,
this
.
accountDetails
,
this
.
error
,
this
.
message
});
crmLeadDetailsEditAccountViewResponse
({
this
.
teams
,
this
.
accountDetails
,
this
.
error
,
this
.
message
,
});
crmLeadDetailsEditAccountViewResponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
if
(
json
[
'teams'
]
!=
null
)
{
teams
=
<
Teams
>[];
json
[
'teams'
].
forEach
((
v
)
{
teams
!.
add
(
new
Teams
.
fromJson
(
v
));
teams
!.
add
(
Teams
.
fromJson
(
v
));
});
}
accountDetails
=
json
[
'account_details'
]
!=
null
?
new
AccountDetails
.
fromJson
(
json
[
'account_details'
])
:
null
;
accountDetails
=
json
[
'account_details'
]
!=
null
?
AccountDetails
.
fromJson
(
json
[
'account_details'
])
:
null
;
error
=
json
[
'error'
];
message
=
json
[
'message'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
if
(
this
.
teams
!=
null
)
{
data
[
'teams'
]
=
this
.
teams
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
if
(
teams
!=
null
)
{
data
[
'teams'
]
=
teams
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
if
(
this
.
accountDetails
!=
null
)
{
data
[
'account_details'
]
=
this
.
accountDetails
!.
toJson
();
if
(
accountDetails
!=
null
)
{
data
[
'account_details'
]
=
accountDetails
!.
toJson
();
}
data
[
'error'
]
=
this
.
error
;
data
[
'message'
]
=
this
.
message
;
data
[
'error'
]
=
error
;
data
[
'message'
]
=
message
;
return
data
;
}
}
...
...
@@ -47,9 +52,9 @@ class Teams {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'name'
]
=
this
.
name
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'name'
]
=
name
;
return
data
;
}
}
...
...
@@ -68,10 +73,10 @@ class AccountDetails {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'team'
]
=
this
.
team
;
data
[
'segment'
]
=
this
.
segment
;
data
[
'name'
]
=
this
.
name
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'team'
]
=
team
;
data
[
'segment'
]
=
segment
;
data
[
'name'
]
=
name
;
return
data
;
}
}
lib/Models/crmModels/crmLeadDetailsEditProductsViewResponse.dart
View file @
7210793a
...
...
@@ -5,20 +5,25 @@ class crmLeadDetailsEditProductsViewResponse {
String
?
message
;
int
?
sessionExists
;
crmLeadDetailsEditProductsViewResponse
(
{
this
.
products
,
this
.
leadProducts
,
this
.
error
,
this
.
message
,
this
.
sessionExists
});
crmLeadDetailsEditProductsViewResponse
({
this
.
products
,
this
.
leadProducts
,
this
.
error
,
this
.
message
,
this
.
sessionExists
,
});
crmLeadDetailsEditProductsViewResponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
if
(
json
[
'products'
]
!=
null
)
{
products
=
<
Products
>[];
json
[
'products'
].
forEach
((
v
)
{
products
!.
add
(
new
Products
.
fromJson
(
v
));
products
!.
add
(
Products
.
fromJson
(
v
));
});
}
if
(
json
[
'lead_products'
]
!=
null
)
{
leadProducts
=
<
LeadProducts
>[];
json
[
'lead_products'
].
forEach
((
v
)
{
leadProducts
!.
add
(
new
LeadProducts
.
fromJson
(
v
));
leadProducts
!.
add
(
LeadProducts
.
fromJson
(
v
));
});
}
error
=
json
[
'error'
];
...
...
@@ -27,17 +32,16 @@ class crmLeadDetailsEditProductsViewResponse {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
if
(
this
.
products
!=
null
)
{
data
[
'products'
]
=
this
.
products
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
if
(
products
!=
null
)
{
data
[
'products'
]
=
products
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
if
(
this
.
leadProducts
!=
null
)
{
data
[
'lead_products'
]
=
this
.
leadProducts
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
if
(
leadProducts
!=
null
)
{
data
[
'lead_products'
]
=
leadProducts
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
data
[
'error'
]
=
this
.
error
;
data
[
'message'
]
=
this
.
message
;
data
[
'session_exists'
]
=
this
.
sessionExists
;
data
[
'error'
]
=
error
;
data
[
'message'
]
=
message
;
data
[
'session_exists'
]
=
sessionExists
;
return
data
;
}
}
...
...
@@ -54,9 +58,9 @@ class Products {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'name'
]
=
this
.
name
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'name'
]
=
name
;
return
data
;
}
}
...
...
@@ -74,18 +78,19 @@ class LeadProducts {
String
?
updatedDatetime
;
String
?
productName
;
LeadProducts
(
{
this
.
id
,
this
.
leadId
,
this
.
productId
,
this
.
qty
,
this
.
price
,
this
.
date
,
this
.
isDel
,
this
.
isExists
,
this
.
createdDatetime
,
this
.
updatedDatetime
,
this
.
productName
});
LeadProducts
({
this
.
id
,
this
.
leadId
,
this
.
productId
,
this
.
qty
,
this
.
price
,
this
.
date
,
this
.
isDel
,
this
.
isExists
,
this
.
createdDatetime
,
this
.
updatedDatetime
,
this
.
productName
,
});
LeadProducts
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
id
=
json
[
'id'
];
...
...
@@ -102,18 +107,18 @@ class LeadProducts {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'lead_id'
]
=
this
.
leadId
;
data
[
'product_id'
]
=
this
.
productId
;
data
[
'qty'
]
=
this
.
qty
;
data
[
'price'
]
=
this
.
price
;
data
[
'date'
]
=
this
.
date
;
data
[
'is_del'
]
=
this
.
isDel
;
data
[
'is_exists'
]
=
this
.
isExists
;
data
[
'created_datetime'
]
=
this
.
createdDatetime
;
data
[
'updated_datetime'
]
=
this
.
updatedDatetime
;
data
[
'product_name'
]
=
this
.
productName
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'lead_id'
]
=
leadId
;
data
[
'product_id'
]
=
productId
;
data
[
'qty'
]
=
qty
;
data
[
'price'
]
=
price
;
data
[
'date'
]
=
date
;
data
[
'is_del'
]
=
isDel
;
data
[
'is_exists'
]
=
isExists
;
data
[
'created_datetime'
]
=
createdDatetime
;
data
[
'updated_datetime'
]
=
updatedDatetime
;
data
[
'product_name'
]
=
productName
;
return
data
;
}
}
lib/Models/crmModels/crmLeadDetailsGenerateQuotationSubmitResponse.dart
View file @
7210793a
...
...
@@ -3,21 +3,25 @@ class crmLeadDetailsGenerateQuotationSubmitResponse {
String
?
error
;
String
?
quoteFilepath
;
crmLeadDetailsGenerateQuotationSubmitResponse
(
{
this
.
message
,
this
.
error
,
this
.
quoteFilepath
});
crmLeadDetailsGenerateQuotationSubmitResponse
({
this
.
message
,
this
.
error
,
this
.
quoteFilepath
,
});
crmLeadDetailsGenerateQuotationSubmitResponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
Map
<
String
,
dynamic
>
json
,
)
{
message
=
json
[
'message'
];
error
=
json
[
'error'
];
quoteFilepath
=
json
[
'quote_filepath'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'message'
]
=
this
.
message
;
data
[
'error'
]
=
this
.
error
;
data
[
'quote_filepath'
]
=
this
.
quoteFilepath
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'message'
]
=
message
;
data
[
'error'
]
=
error
;
data
[
'quote_filepath'
]
=
quoteFilepath
;
return
data
;
}
}
lib/Models/crmModels/crmLeadDetailsGenerateQuotationViewResponse.dart
View file @
7210793a
...
...
@@ -6,29 +6,32 @@ class crmLeadDetailsGenerateQuotationViewResponse {
String
?
message
;
int
?
sessionExists
;
crmLeadDetailsGenerateQuotationViewResponse
(
{
this
.
quoteDetails
,
this
.
leadProducts
,
this
.
products
,
this
.
error
,
this
.
message
,
this
.
sessionExists
});
crmLeadDetailsGenerateQuotationViewResponse
({
this
.
quoteDetails
,
this
.
leadProducts
,
this
.
products
,
this
.
error
,
this
.
message
,
this
.
sessionExists
,
});
crmLeadDetailsGenerateQuotationViewResponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
quoteDetails
=
json
[
'quote_details'
]
!=
null
?
new
QuoteDetails
.
fromJson
(
json
[
'quote_details'
])
:
null
;
Map
<
String
,
dynamic
>
json
,
)
{
quoteDetails
=
json
[
'quote_details'
]
!=
null
?
QuoteDetails
.
fromJson
(
json
[
'quote_details'
])
:
null
;
if
(
json
[
'lead_products'
]
!=
null
)
{
leadProducts
=
<
LeadProducts
>[];
json
[
'lead_products'
].
forEach
((
v
)
{
leadProducts
!.
add
(
new
LeadProducts
.
fromJson
(
v
));
leadProducts
!.
add
(
LeadProducts
.
fromJson
(
v
));
});
}
if
(
json
[
'products'
]
!=
null
)
{
products
=
<
Products
>[];
json
[
'products'
].
forEach
((
v
)
{
products
!.
add
(
new
Products
.
fromJson
(
v
));
products
!.
add
(
Products
.
fromJson
(
v
));
});
}
error
=
json
[
'error'
];
...
...
@@ -37,20 +40,19 @@ class crmLeadDetailsGenerateQuotationViewResponse {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
if
(
this
.
quoteDetails
!=
null
)
{
data
[
'quote_details'
]
=
this
.
quoteDetails
!.
toJson
();
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
if
(
quoteDetails
!=
null
)
{
data
[
'quote_details'
]
=
quoteDetails
!.
toJson
();
}
if
(
this
.
leadProducts
!=
null
)
{
data
[
'lead_products'
]
=
this
.
leadProducts
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
if
(
leadProducts
!=
null
)
{
data
[
'lead_products'
]
=
leadProducts
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
if
(
this
.
products
!=
null
)
{
data
[
'products'
]
=
this
.
products
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
if
(
products
!=
null
)
{
data
[
'products'
]
=
products
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
data
[
'error'
]
=
this
.
error
;
data
[
'message'
]
=
this
.
message
;
data
[
'session_exists'
]
=
this
.
sessionExists
;
data
[
'error'
]
=
error
;
data
[
'message'
]
=
message
;
data
[
'session_exists'
]
=
sessionExists
;
return
data
;
}
}
...
...
@@ -64,14 +66,15 @@ class QuoteDetails {
String
?
forText
;
String
?
paymentTerms
;
QuoteDetails
(
{
this
.
accountId
,
this
.
name
,
this
.
email
,
this
.
mobile
,
this
.
subject
,
this
.
forText
,
this
.
paymentTerms
});
QuoteDetails
({
this
.
accountId
,
this
.
name
,
this
.
email
,
this
.
mobile
,
this
.
subject
,
this
.
forText
,
this
.
paymentTerms
,
});
QuoteDetails
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
accountId
=
json
[
'account_id'
];
...
...
@@ -84,14 +87,14 @@ class QuoteDetails {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'account_id'
]
=
this
.
accountId
;
data
[
'name'
]
=
this
.
name
;
data
[
'email'
]
=
this
.
email
;
data
[
'mobile'
]
=
this
.
mobile
;
data
[
'subject'
]
=
this
.
subject
;
data
[
'for_text'
]
=
this
.
forText
;
data
[
'payment_terms'
]
=
this
.
paymentTerms
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'account_id'
]
=
accountId
;
data
[
'name'
]
=
name
;
data
[
'email'
]
=
email
;
data
[
'mobile'
]
=
mobile
;
data
[
'subject'
]
=
subject
;
data
[
'for_text'
]
=
forText
;
data
[
'payment_terms'
]
=
paymentTerms
;
return
data
;
}
}
...
...
@@ -110,19 +113,20 @@ class LeadProducts {
String
?
prodTotalPrice
;
String
?
productName
;
LeadProducts
(
{
this
.
id
,
this
.
leadId
,
this
.
productId
,
this
.
qty
,
this
.
price
,
this
.
date
,
this
.
isDel
,
this
.
isExists
,
this
.
createdDatetime
,
this
.
updatedDatetime
,
this
.
prodTotalPrice
,
this
.
productName
});
LeadProducts
({
this
.
id
,
this
.
leadId
,
this
.
productId
,
this
.
qty
,
this
.
price
,
this
.
date
,
this
.
isDel
,
this
.
isExists
,
this
.
createdDatetime
,
this
.
updatedDatetime
,
this
.
prodTotalPrice
,
this
.
productName
,
});
LeadProducts
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
id
=
json
[
'id'
];
...
...
@@ -140,19 +144,19 @@ class LeadProducts {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'lead_id'
]
=
this
.
leadId
;
data
[
'product_id'
]
=
this
.
productId
;
data
[
'qty'
]
=
this
.
qty
;
data
[
'price'
]
=
this
.
price
;
data
[
'date'
]
=
this
.
date
;
data
[
'is_del'
]
=
this
.
isDel
;
data
[
'is_exists'
]
=
this
.
isExists
;
data
[
'created_datetime'
]
=
this
.
createdDatetime
;
data
[
'updated_datetime'
]
=
this
.
updatedDatetime
;
data
[
'prod_total_price'
]
=
this
.
prodTotalPrice
;
data
[
'product_name'
]
=
this
.
productName
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'lead_id'
]
=
leadId
;
data
[
'product_id'
]
=
productId
;
data
[
'qty'
]
=
qty
;
data
[
'price'
]
=
price
;
data
[
'date'
]
=
date
;
data
[
'is_del'
]
=
isDel
;
data
[
'is_exists'
]
=
isExists
;
data
[
'created_datetime'
]
=
createdDatetime
;
data
[
'updated_datetime'
]
=
updatedDatetime
;
data
[
'prod_total_price'
]
=
prodTotalPrice
;
data
[
'product_name'
]
=
productName
;
return
data
;
}
}
...
...
@@ -169,9 +173,9 @@ class Products {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'name'
]
=
this
.
name
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'name'
]
=
name
;
return
data
;
}
}
lib/Models/crmModels/crmNewLeadsProspectsSubmitResponse.dart
View file @
7210793a
...
...
@@ -12,10 +12,10 @@ class crmNewLeadsProspectsSubmitResponse {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'error'
]
=
this
.
error
;
data
[
'message'
]
=
this
.
message
;
data
[
'lead_id'
]
=
this
.
leadId
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'error'
]
=
error
;
data
[
'message'
]
=
message
;
data
[
'lead_id'
]
=
leadId
;
return
data
;
}
}
lib/Models/crmModels/crmNewLeadsProspectsViewResponse.dart
View file @
7210793a
...
...
@@ -9,46 +9,47 @@ class crmNewLeadsProspectsViewResponse {
String
?
message
;
int
?
sessionExists
;
crmNewLeadsProspectsViewResponse
(
{
this
.
employees
,
this
.
sources
,
this
.
teams
,
this
.
states
,
this
.
products
,
this
.
salutation
,
this
.
error
,
this
.
message
,
this
.
sessionExists
});
crmNewLeadsProspectsViewResponse
({
this
.
employees
,
this
.
sources
,
this
.
teams
,
this
.
states
,
this
.
products
,
this
.
salutation
,
this
.
error
,
this
.
message
,
this
.
sessionExists
,
});
crmNewLeadsProspectsViewResponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
if
(
json
[
'employees'
]
!=
null
)
{
employees
=
<
Employees
>[];
json
[
'employees'
].
forEach
((
v
)
{
employees
!.
add
(
new
Employees
.
fromJson
(
v
));
employees
!.
add
(
Employees
.
fromJson
(
v
));
});
}
if
(
json
[
'sources'
]
!=
null
)
{
sources
=
<
Sources
>[];
json
[
'sources'
].
forEach
((
v
)
{
sources
!.
add
(
new
Sources
.
fromJson
(
v
));
sources
!.
add
(
Sources
.
fromJson
(
v
));
});
}
if
(
json
[
'teams'
]
!=
null
)
{
teams
=
<
Teams
>[];
json
[
'teams'
].
forEach
((
v
)
{
teams
!.
add
(
new
Teams
.
fromJson
(
v
));
teams
!.
add
(
Teams
.
fromJson
(
v
));
});
}
if
(
json
[
'states'
]
!=
null
)
{
states
=
<
States
>[];
json
[
'states'
].
forEach
((
v
)
{
states
!.
add
(
new
States
.
fromJson
(
v
));
states
!.
add
(
States
.
fromJson
(
v
));
});
}
if
(
json
[
'products'
]
!=
null
)
{
products
=
<
Products
>[];
json
[
'products'
].
forEach
((
v
)
{
products
!.
add
(
new
Products
.
fromJson
(
v
));
products
!.
add
(
Products
.
fromJson
(
v
));
});
}
salutation
=
json
[
'salutation'
].
cast
<
String
>();
...
...
@@ -58,26 +59,26 @@ class crmNewLeadsProspectsViewResponse {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
if
(
this
.
employees
!=
null
)
{
data
[
'employees'
]
=
this
.
employees
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
if
(
employees
!=
null
)
{
data
[
'employees'
]
=
employees
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
if
(
this
.
sources
!=
null
)
{
data
[
'sources'
]
=
this
.
sources
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
if
(
sources
!=
null
)
{
data
[
'sources'
]
=
sources
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
if
(
this
.
teams
!=
null
)
{
data
[
'teams'
]
=
this
.
teams
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
if
(
teams
!=
null
)
{
data
[
'teams'
]
=
teams
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
if
(
this
.
states
!=
null
)
{
data
[
'states'
]
=
this
.
states
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
if
(
states
!=
null
)
{
data
[
'states'
]
=
states
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
if
(
this
.
products
!=
null
)
{
data
[
'products'
]
=
this
.
products
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
if
(
products
!=
null
)
{
data
[
'products'
]
=
products
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
data
[
'salutation'
]
=
this
.
salutation
;
data
[
'error'
]
=
this
.
error
;
data
[
'message'
]
=
this
.
message
;
data
[
'session_exists'
]
=
this
.
sessionExists
;
data
[
'salutation'
]
=
salutation
;
data
[
'error'
]
=
error
;
data
[
'message'
]
=
message
;
data
[
'session_exists'
]
=
sessionExists
;
return
data
;
}
}
...
...
@@ -94,12 +95,13 @@ class Employees {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'name'
]
=
this
.
name
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'name'
]
=
name
;
return
data
;
}
}
class
Sources
{
String
?
id
;
String
?
name
;
...
...
@@ -112,9 +114,9 @@ class Sources {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'name'
]
=
this
.
name
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'name'
]
=
name
;
return
data
;
}
}
...
...
@@ -131,9 +133,9 @@ class Teams {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'name'
]
=
this
.
name
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'name'
]
=
name
;
return
data
;
}
}
...
...
@@ -150,9 +152,9 @@ class States {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'name'
]
=
this
.
name
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'name'
]
=
name
;
return
data
;
}
}
...
...
@@ -169,9 +171,9 @@ class Products {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'name'
]
=
this
.
name
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'name'
]
=
name
;
return
data
;
}
}
lib/Models/crmModels/crmPendingTasksResponse.dart
View file @
7210793a
...
...
@@ -9,7 +9,7 @@ class crmPendingTasksResponse {
if
(
json
[
'pending_tasks'
]
!=
null
)
{
pendingTasks
=
<
PendingTasks
>[];
json
[
'pending_tasks'
].
forEach
((
v
)
{
pendingTasks
!.
add
(
new
PendingTasks
.
fromJson
(
v
));
pendingTasks
!.
add
(
PendingTasks
.
fromJson
(
v
));
});
}
error
=
json
[
'error'
];
...
...
@@ -17,13 +17,12 @@ class crmPendingTasksResponse {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>();
if
(
this
.
pendingTasks
!=
null
)
{
data
[
'pending_tasks'
]
=
this
.
pendingTasks
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>{};
if
(
pendingTasks
!=
null
)
{
data
[
'pending_tasks'
]
=
pendingTasks
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
data
[
'error'
]
=
this
.
error
;
data
[
'message'
]
=
this
.
message
;
data
[
'error'
]
=
error
;
data
[
'message'
]
=
message
;
return
data
;
}
}
...
...
@@ -39,16 +38,17 @@ class PendingTasks {
String
?
lempid
;
String
?
aid
;
PendingTasks
(
{
this
.
conmob
,
this
.
aname
,
this
.
appdate
,
this
.
atype
,
this
.
anote
,
this
.
leadid
,
this
.
lstatus
,
this
.
lempid
,
this
.
aid
});
PendingTasks
({
this
.
conmob
,
this
.
aname
,
this
.
appdate
,
this
.
atype
,
this
.
anote
,
this
.
leadid
,
this
.
lstatus
,
this
.
lempid
,
this
.
aid
,
});
PendingTasks
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
conmob
=
json
[
'conmob'
];
...
...
@@ -63,16 +63,16 @@ class PendingTasks {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'conmob'
]
=
this
.
conmob
;
data
[
'aname'
]
=
this
.
aname
;
data
[
'appdate'
]
=
this
.
appdate
;
data
[
'atype'
]
=
this
.
atype
;
data
[
'anote'
]
=
this
.
anote
;
data
[
'leadid'
]
=
this
.
leadid
;
data
[
'lstatus'
]
=
this
.
lstatus
;
data
[
'lempid'
]
=
this
.
lempid
;
data
[
'aid'
]
=
this
.
aid
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'conmob'
]
=
conmob
;
data
[
'aname'
]
=
aname
;
data
[
'appdate'
]
=
appdate
;
data
[
'atype'
]
=
atype
;
data
[
'anote'
]
=
anote
;
data
[
'leadid'
]
=
leadid
;
data
[
'lstatus'
]
=
lstatus
;
data
[
'lempid'
]
=
lempid
;
data
[
'aid'
]
=
aid
;
return
data
;
}
}
lib/Models/crmModels/crmProspectDetailsAddFollowUpAppointmentResponse.dart
View file @
7210793a
...
...
@@ -3,21 +3,25 @@ class crmProspectDetailsAddFollowUpAppointmentResponse {
String
?
error
;
String
?
message
;
crmProspectDetailsAddFollowUpAppointmentResponse
(
{
this
.
redirectTo
,
this
.
error
,
this
.
message
});
crmProspectDetailsAddFollowUpAppointmentResponse
({
this
.
redirectTo
,
this
.
error
,
this
.
message
,
});
crmProspectDetailsAddFollowUpAppointmentResponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
Map
<
String
,
dynamic
>
json
,
)
{
redirectTo
=
json
[
'redirect_to'
];
error
=
json
[
'error'
];
message
=
json
[
'message'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'redirect_to'
]
=
this
.
redirectTo
;
data
[
'error'
]
=
this
.
error
;
data
[
'message'
]
=
this
.
message
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'redirect_to'
]
=
redirectTo
;
data
[
'error'
]
=
error
;
data
[
'message'
]
=
message
;
return
data
;
}
}
lib/Models/crmModels/crmProspectDetailsAddLeadsResponse.dart
View file @
7210793a
...
...
@@ -5,20 +5,25 @@ class crmProspectDetailsAddLeadsResponse {
String
?
error
;
String
?
message
;
crmProspectDetailsAddLeadsResponse
(
{
this
.
employees
,
this
.
products
,
this
.
status
,
this
.
error
,
this
.
message
});
crmProspectDetailsAddLeadsResponse
({
this
.
employees
,
this
.
products
,
this
.
status
,
this
.
error
,
this
.
message
,
});
crmProspectDetailsAddLeadsResponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
if
(
json
[
'employees'
]
!=
null
)
{
employees
=
<
LeadEmployees
>[];
json
[
'employees'
].
forEach
((
v
)
{
employees
!.
add
(
new
LeadEmployees
.
fromJson
(
v
));
employees
!.
add
(
LeadEmployees
.
fromJson
(
v
));
});
}
if
(
json
[
'products'
]
!=
null
)
{
products
=
<
Products
>[];
json
[
'products'
].
forEach
((
v
)
{
products
!.
add
(
new
Products
.
fromJson
(
v
));
products
!.
add
(
Products
.
fromJson
(
v
));
});
}
status
=
json
[
'status'
].
cast
<
String
>();
...
...
@@ -27,16 +32,16 @@ class crmProspectDetailsAddLeadsResponse {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
if
(
this
.
employees
!=
null
)
{
data
[
'employees'
]
=
this
.
employees
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
if
(
employees
!=
null
)
{
data
[
'employees'
]
=
employees
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
if
(
this
.
products
!=
null
)
{
data
[
'products'
]
=
this
.
products
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
if
(
products
!=
null
)
{
data
[
'products'
]
=
products
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
data
[
'status'
]
=
this
.
status
;
data
[
'error'
]
=
this
.
error
;
data
[
'message'
]
=
this
.
message
;
data
[
'status'
]
=
status
;
data
[
'error'
]
=
error
;
data
[
'message'
]
=
message
;
return
data
;
}
}
...
...
@@ -53,12 +58,13 @@ class LeadEmployees {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'name'
]
=
this
.
name
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'name'
]
=
name
;
return
data
;
}
}
class
Products
{
String
?
id
;
String
?
name
;
...
...
@@ -71,9 +77,9 @@ class Products {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'name'
]
=
this
.
name
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'name'
]
=
name
;
return
data
;
}
}
lib/Models/crmModels/crmProspectDetailsEditAccountViewResponse.dart
View file @
7210793a
...
...
@@ -5,40 +5,43 @@ class crmProspectDetailsEditAccountViewResponse {
AccountDetails
?
accountDetails
;
String
?
message
;
crmProspectDetailsEditAccountViewResponse
(
{
this
.
salutations
,
this
.
states
,
this
.
error
,
this
.
accountDetails
,
this
.
message
});
crmProspectDetailsEditAccountViewResponse
({
this
.
salutations
,
this
.
states
,
this
.
error
,
this
.
accountDetails
,
this
.
message
,
});
crmProspectDetailsEditAccountViewResponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
Map
<
String
,
dynamic
>
json
,
)
{
salutations
=
json
[
'salutations'
].
cast
<
String
>();
if
(
json
[
'states'
]
!=
null
)
{
states
=
<
States
>[];
json
[
'states'
].
forEach
((
v
)
{
states
!.
add
(
new
States
.
fromJson
(
v
));
states
!.
add
(
States
.
fromJson
(
v
));
});
}
error
=
json
[
'error'
];
accountDetails
=
json
[
'account_details'
]
!=
null
?
new
AccountDetails
.
fromJson
(
json
[
'account_details'
])
:
null
;
accountDetails
=
json
[
'account_details'
]
!=
null
?
AccountDetails
.
fromJson
(
json
[
'account_details'
])
:
null
;
message
=
json
[
'message'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'salutations'
]
=
this
.
salutations
;
if
(
this
.
states
!=
null
)
{
data
[
'states'
]
=
this
.
states
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'salutations'
]
=
salutations
;
if
(
states
!=
null
)
{
data
[
'states'
]
=
states
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
data
[
'error'
]
=
this
.
error
;
if
(
this
.
accountDetails
!=
null
)
{
data
[
'account_details'
]
=
this
.
accountDetails
!.
toJson
();
data
[
'error'
]
=
error
;
if
(
accountDetails
!=
null
)
{
data
[
'account_details'
]
=
accountDetails
!.
toJson
();
}
data
[
'message'
]
=
this
.
message
;
data
[
'message'
]
=
message
;
return
data
;
}
}
...
...
@@ -55,9 +58,9 @@ class States {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'name'
]
=
this
.
name
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'name'
]
=
name
;
return
data
;
}
}
...
...
@@ -84,27 +87,28 @@ class AccountDetails {
String
?
createdDatetime
;
String
?
updatedDatetime
;
AccountDetails
(
{
this
.
id
,
this
.
tempId
,
this
.
ownerId
,
this
.
accManagerId
,
this
.
name
,
this
.
salutationName
,
this
.
subLocality
,
this
.
district
,
this
.
state
,
this
.
pincode
,
this
.
address
,
this
.
date
,
this
.
source
,
this
.
reference
,
this
.
segment
,
this
.
team
,
this
.
gstNumber
,
this
.
isExists
,
this
.
createdDatetime
,
this
.
updatedDatetime
});
AccountDetails
({
this
.
id
,
this
.
tempId
,
this
.
ownerId
,
this
.
accManagerId
,
this
.
name
,
this
.
salutationName
,
this
.
subLocality
,
this
.
district
,
this
.
state
,
this
.
pincode
,
this
.
address
,
this
.
date
,
this
.
source
,
this
.
reference
,
this
.
segment
,
this
.
team
,
this
.
gstNumber
,
this
.
isExists
,
this
.
createdDatetime
,
this
.
updatedDatetime
,
});
AccountDetails
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
id
=
json
[
'id'
];
...
...
@@ -130,27 +134,27 @@ class AccountDetails {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'temp_id'
]
=
this
.
tempId
;
data
[
'owner_id'
]
=
this
.
ownerId
;
data
[
'acc_manager_id'
]
=
this
.
accManagerId
;
data
[
'name'
]
=
this
.
name
;
data
[
'salutation_name'
]
=
this
.
salutationName
;
data
[
'sub_locality'
]
=
this
.
subLocality
;
data
[
'district'
]
=
this
.
district
;
data
[
'state'
]
=
this
.
state
;
data
[
'pincode'
]
=
this
.
pincode
;
data
[
'address'
]
=
this
.
address
;
data
[
'date'
]
=
this
.
date
;
data
[
'source'
]
=
this
.
source
;
data
[
'reference'
]
=
this
.
reference
;
data
[
'segment'
]
=
this
.
segment
;
data
[
'team'
]
=
this
.
team
;
data
[
'gst_number'
]
=
this
.
gstNumber
;
data
[
'is_exists'
]
=
this
.
isExists
;
data
[
'created_datetime'
]
=
this
.
createdDatetime
;
data
[
'updated_datetime'
]
=
this
.
updatedDatetime
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'temp_id'
]
=
tempId
;
data
[
'owner_id'
]
=
ownerId
;
data
[
'acc_manager_id'
]
=
accManagerId
;
data
[
'name'
]
=
name
;
data
[
'salutation_name'
]
=
salutationName
;
data
[
'sub_locality'
]
=
subLocality
;
data
[
'district'
]
=
district
;
data
[
'state'
]
=
state
;
data
[
'pincode'
]
=
pincode
;
data
[
'address'
]
=
address
;
data
[
'date'
]
=
date
;
data
[
'source'
]
=
source
;
data
[
'reference'
]
=
reference
;
data
[
'segment'
]
=
segment
;
data
[
'team'
]
=
team
;
data
[
'gst_number'
]
=
gstNumber
;
data
[
'is_exists'
]
=
isExists
;
data
[
'created_datetime'
]
=
createdDatetime
;
data
[
'updated_datetime'
]
=
updatedDatetime
;
return
data
;
}
}
lib/Models/crmModels/crmProspectDetailsResponse.dart
View file @
7210793a
...
...
@@ -8,69 +8,71 @@ class crmProspectDetailsResponse {
String
?
message
;
String
?
showTransfeLeadButton
;
crmProspectDetailsResponse
(
{
this
.
leads
,
this
.
contacts
,
this
.
orders
,
this
.
payments
,
this
.
error
,
this
.
accountDetails
,
this
.
message
,
this
.
showTransfeLeadButton
});
crmProspectDetailsResponse
({
this
.
leads
,
this
.
contacts
,
this
.
orders
,
this
.
payments
,
this
.
error
,
this
.
accountDetails
,
this
.
message
,
this
.
showTransfeLeadButton
,
});
crmProspectDetailsResponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
if
(
json
[
'leads'
]
!=
null
)
{
leads
=
<
Leads
>[];
json
[
'leads'
].
forEach
((
v
)
{
leads
!.
add
(
new
Leads
.
fromJson
(
v
));
leads
!.
add
(
Leads
.
fromJson
(
v
));
});
}
if
(
json
[
'contacts'
]
!=
null
)
{
contacts
=
<
Contacts
>[];
json
[
'contacts'
].
forEach
((
v
)
{
contacts
!.
add
(
new
Contacts
.
fromJson
(
v
));
contacts
!.
add
(
Contacts
.
fromJson
(
v
));
});
}
if
(
json
[
'orders'
]
!=
null
)
{
orders
=
<
Orders
>[];
json
[
'orders'
].
forEach
((
v
)
{
orders
!.
add
(
new
Orders
.
fromJson
(
v
));
orders
!.
add
(
Orders
.
fromJson
(
v
));
});
}
if
(
json
[
'payments'
]
!=
null
)
{
payments
=
<
Payments
>[];
json
[
'payments'
].
forEach
((
v
)
{
payments
!.
add
(
new
Payments
.
fromJson
(
v
));
payments
!.
add
(
Payments
.
fromJson
(
v
));
});
}
error
=
json
[
'error'
];
showTransfeLeadButton
=
json
[
'show_transfer_lead_button'
];
accountDetails
=
json
[
'account_details'
]
!=
null
?
new
AccountDetails
.
fromJson
(
json
[
'account_details'
])
:
null
;
accountDetails
=
json
[
'account_details'
]
!=
null
?
AccountDetails
.
fromJson
(
json
[
'account_details'
])
:
null
;
message
=
json
[
'message'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
if
(
this
.
leads
!=
null
)
{
data
[
'leads'
]
=
this
.
leads
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
if
(
leads
!=
null
)
{
data
[
'leads'
]
=
leads
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
if
(
this
.
contacts
!=
null
)
{
data
[
'contacts'
]
=
this
.
contacts
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
if
(
contacts
!=
null
)
{
data
[
'contacts'
]
=
contacts
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
if
(
this
.
orders
!=
null
)
{
data
[
'orders'
]
=
this
.
orders
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
if
(
orders
!=
null
)
{
data
[
'orders'
]
=
orders
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
if
(
this
.
payments
!=
null
)
{
data
[
'payments'
]
=
this
.
payments
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
if
(
payments
!=
null
)
{
data
[
'payments'
]
=
payments
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
data
[
'error'
]
=
this
.
error
;
if
(
this
.
accountDetails
!=
null
)
{
data
[
'account_details'
]
=
this
.
accountDetails
!.
toJson
();
data
[
'error'
]
=
error
;
if
(
accountDetails
!=
null
)
{
data
[
'account_details'
]
=
accountDetails
!.
toJson
();
}
data
[
'message'
]
=
this
.
message
;
data
[
'show_transfer_lead_button'
]
=
this
.
showTransfeLeadButton
;
data
[
'message'
]
=
message
;
data
[
'show_transfer_lead_button'
]
=
showTransfeLeadButton
;
return
data
;
}
}
...
...
@@ -92,22 +94,23 @@ class Leads {
String
?
createdDatetime
;
String
?
updatedDatetime
;
Leads
(
{
this
.
id
,
this
.
ownerId
,
this
.
accId
,
this
.
accManagerId
,
this
.
status
,
this
.
openStatus
,
this
.
date
,
this
.
closeDate
,
this
.
closereason
,
this
.
competitor
,
this
.
orderGainId
,
this
.
loc
,
this
.
isExists
,
this
.
createdDatetime
,
this
.
updatedDatetime
});
Leads
({
this
.
id
,
this
.
ownerId
,
this
.
accId
,
this
.
accManagerId
,
this
.
status
,
this
.
openStatus
,
this
.
date
,
this
.
closeDate
,
this
.
closereason
,
this
.
competitor
,
this
.
orderGainId
,
this
.
loc
,
this
.
isExists
,
this
.
createdDatetime
,
this
.
updatedDatetime
,
});
Leads
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
id
=
json
[
'id'
];
...
...
@@ -128,22 +131,22 @@ class Leads {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'owner_id'
]
=
this
.
ownerId
;
data
[
'acc_id'
]
=
this
.
accId
;
data
[
'acc_manager_id'
]
=
this
.
accManagerId
;
data
[
'status'
]
=
this
.
status
;
data
[
'open_status'
]
=
this
.
openStatus
;
data
[
'date'
]
=
this
.
date
;
data
[
'close_date'
]
=
this
.
closeDate
;
data
[
'closereason'
]
=
this
.
closereason
;
data
[
'competitor'
]
=
this
.
competitor
;
data
[
'order_gain_id'
]
=
this
.
orderGainId
;
data
[
'loc'
]
=
this
.
loc
;
data
[
'is_exists'
]
=
this
.
isExists
;
data
[
'created_datetime'
]
=
this
.
createdDatetime
;
data
[
'updated_datetime'
]
=
this
.
updatedDatetime
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'owner_id'
]
=
ownerId
;
data
[
'acc_id'
]
=
accId
;
data
[
'acc_manager_id'
]
=
accManagerId
;
data
[
'status'
]
=
status
;
data
[
'open_status'
]
=
openStatus
;
data
[
'date'
]
=
date
;
data
[
'close_date'
]
=
closeDate
;
data
[
'closereason'
]
=
closereason
;
data
[
'competitor'
]
=
competitor
;
data
[
'order_gain_id'
]
=
orderGainId
;
data
[
'loc'
]
=
loc
;
data
[
'is_exists'
]
=
isExists
;
data
[
'created_datetime'
]
=
createdDatetime
;
data
[
'updated_datetime'
]
=
updatedDatetime
;
return
data
;
}
}
...
...
@@ -164,21 +167,22 @@ class Contacts {
String
?
createdDatetime
;
String
?
updatedDatetime
;
Contacts
(
{
this
.
id
,
this
.
accId
,
this
.
name
,
this
.
salutationName
,
this
.
mob1
,
this
.
mob2
,
this
.
tel
,
this
.
email
,
this
.
type
,
this
.
designation
,
this
.
date
,
this
.
isExists
,
this
.
createdDatetime
,
this
.
updatedDatetime
});
Contacts
({
this
.
id
,
this
.
accId
,
this
.
name
,
this
.
salutationName
,
this
.
mob1
,
this
.
mob2
,
this
.
tel
,
this
.
email
,
this
.
type
,
this
.
designation
,
this
.
date
,
this
.
isExists
,
this
.
createdDatetime
,
this
.
updatedDatetime
,
});
Contacts
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
id
=
json
[
'id'
];
...
...
@@ -198,21 +202,21 @@ class Contacts {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'acc_id'
]
=
this
.
accId
;
data
[
'name'
]
=
this
.
name
;
data
[
'salutation_name'
]
=
this
.
salutationName
;
data
[
'mob1'
]
=
this
.
mob1
;
data
[
'mob2'
]
=
this
.
mob2
;
data
[
'tel'
]
=
this
.
tel
;
data
[
'email'
]
=
this
.
email
;
data
[
'type'
]
=
this
.
type
;
data
[
'designation'
]
=
this
.
designation
;
data
[
'date'
]
=
this
.
date
;
data
[
'is_exists'
]
=
this
.
isExists
;
data
[
'created_datetime'
]
=
this
.
createdDatetime
;
data
[
'updated_datetime'
]
=
this
.
updatedDatetime
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'acc_id'
]
=
accId
;
data
[
'name'
]
=
name
;
data
[
'salutation_name'
]
=
salutationName
;
data
[
'mob1'
]
=
mob1
;
data
[
'mob2'
]
=
mob2
;
data
[
'tel'
]
=
tel
;
data
[
'email'
]
=
email
;
data
[
'type'
]
=
type
;
data
[
'designation'
]
=
designation
;
data
[
'date'
]
=
date
;
data
[
'is_exists'
]
=
isExists
;
data
[
'created_datetime'
]
=
createdDatetime
;
data
[
'updated_datetime'
]
=
updatedDatetime
;
return
data
;
}
}
...
...
@@ -266,54 +270,55 @@ class Orders {
String
?
createdDatetime
;
String
?
updatedDatetime
;
Orders
(
{
this
.
id
,
this
.
orderNumber
,
this
.
orderNumberHash
,
this
.
accId
,
this
.
refType
,
this
.
refId
,
this
.
salesPersonEmpId
,
this
.
enteredEmpId
,
this
.
dispatchStateId
,
this
.
dispatchDistrictId
,
this
.
dispatchSubLocationId
,
this
.
dispatchPincode
,
this
.
dispatchAddress
,
this
.
basicAmount
,
this
.
cgstAmount
,
this
.
sgstAmount
,
this
.
igstAmount
,
this
.
paidAmount
,
this
.
totalAmount
,
this
.
status
,
this
.
orderReceivedDate
,
this
.
scheduledDispatchDate
,
this
.
otp
,
this
.
note
,
this
.
poViewFileName
,
this
.
poDirFilePath
,
this
.
unloadingScope
,
this
.
freightScope
,
this
.
erectionScope
,
this
.
saleOrderNumber
,
this
.
invoiceNumber
,
this
.
vehicleNumber
,
this
.
driverName
,
this
.
driverMobileNumber
,
this
.
tpcApplicable
,
this
.
requestedTpcAmount
,
this
.
level1TpcApprovedAmount
,
this
.
level2TpcApprovedAmount
,
this
.
tpcPaymentMode
,
this
.
tpcPaymentReferenceNo
,
this
.
tpcPaymentAttachmentDirFilePath
,
this
.
tpcPaymentAttachementViewFileName
,
this
.
tpcStatus
,
this
.
tpcAgentId
,
this
.
isExist
,
this
.
createdDatetime
,
this
.
updatedDatetime
});
Orders
({
this
.
id
,
this
.
orderNumber
,
this
.
orderNumberHash
,
this
.
accId
,
this
.
refType
,
this
.
refId
,
this
.
salesPersonEmpId
,
this
.
enteredEmpId
,
this
.
dispatchStateId
,
this
.
dispatchDistrictId
,
this
.
dispatchSubLocationId
,
this
.
dispatchPincode
,
this
.
dispatchAddress
,
this
.
basicAmount
,
this
.
cgstAmount
,
this
.
sgstAmount
,
this
.
igstAmount
,
this
.
paidAmount
,
this
.
totalAmount
,
this
.
status
,
this
.
orderReceivedDate
,
this
.
scheduledDispatchDate
,
this
.
otp
,
this
.
note
,
this
.
poViewFileName
,
this
.
poDirFilePath
,
this
.
unloadingScope
,
this
.
freightScope
,
this
.
erectionScope
,
this
.
saleOrderNumber
,
this
.
invoiceNumber
,
this
.
vehicleNumber
,
this
.
driverName
,
this
.
driverMobileNumber
,
this
.
tpcApplicable
,
this
.
requestedTpcAmount
,
this
.
level1TpcApprovedAmount
,
this
.
level2TpcApprovedAmount
,
this
.
tpcPaymentMode
,
this
.
tpcPaymentReferenceNo
,
this
.
tpcPaymentAttachmentDirFilePath
,
this
.
tpcPaymentAttachementViewFileName
,
this
.
tpcStatus
,
this
.
tpcAgentId
,
this
.
isExist
,
this
.
createdDatetime
,
this
.
updatedDatetime
,
});
Orders
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
id
=
json
[
'id'
];
...
...
@@ -357,9 +362,9 @@ class Orders {
tpcPaymentMode
=
json
[
'tpc_payment_mode'
];
tpcPaymentReferenceNo
=
json
[
'tpc_payment_reference_no'
];
tpcPaymentAttachmentDirFilePath
=
json
[
'tpc_payment_attachment_dir_file_path'
];
json
[
'tpc_payment_attachment_dir_file_path'
];
tpcPaymentAttachementViewFileName
=
json
[
'tpc_payment_attachement_view_file_name'
];
json
[
'tpc_payment_attachement_view_file_name'
];
tpcStatus
=
json
[
'tpc_status'
];
tpcAgentId
=
json
[
'tpc_agent_id'
];
isExist
=
json
[
'is_exist'
];
...
...
@@ -368,56 +373,56 @@ class Orders {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'order_number'
]
=
this
.
orderNumber
;
data
[
'order_number_hash'
]
=
this
.
orderNumberHash
;
data
[
'acc_id'
]
=
this
.
accId
;
data
[
'ref_type'
]
=
this
.
refType
;
data
[
'ref_id'
]
=
this
.
refId
;
data
[
'sales_person_emp_id'
]
=
this
.
salesPersonEmpId
;
data
[
'entered_emp_id'
]
=
this
.
enteredEmpId
;
data
[
'dispatch_state_id'
]
=
this
.
dispatchStateId
;
data
[
'dispatch_district_id'
]
=
this
.
dispatchDistrictId
;
data
[
'dispatch_sub_location_id'
]
=
this
.
dispatchSubLocationId
;
data
[
'dispatch_pincode'
]
=
this
.
dispatchPincode
;
data
[
'dispatch_address'
]
=
this
.
dispatchAddress
;
data
[
'basic_amount'
]
=
this
.
basicAmount
;
data
[
'cgst_amount'
]
=
this
.
cgstAmount
;
data
[
'sgst_amount'
]
=
this
.
sgstAmount
;
data
[
'igst_amount'
]
=
this
.
igstAmount
;
data
[
'paid_amount'
]
=
this
.
paidAmount
;
data
[
'total_amount'
]
=
this
.
totalAmount
;
data
[
'status'
]
=
this
.
status
;
data
[
'order_received_date'
]
=
this
.
orderReceivedDate
;
data
[
'scheduled_dispatch_date'
]
=
this
.
scheduledDispatchDate
;
data
[
'otp'
]
=
this
.
otp
;
data
[
'note'
]
=
this
.
note
;
data
[
'po_view_file_name'
]
=
this
.
poViewFileName
;
data
[
'po_dir_file_path'
]
=
this
.
poDirFilePath
;
data
[
'unloading_scope'
]
=
this
.
unloadingScope
;
data
[
'freight_scope'
]
=
this
.
freightScope
;
data
[
'erection_scope'
]
=
this
.
erectionScope
;
data
[
'sale_order_number'
]
=
this
.
saleOrderNumber
;
data
[
'invoice_number'
]
=
this
.
invoiceNumber
;
data
[
'vehicle_number'
]
=
this
.
vehicleNumber
;
data
[
'driver_name'
]
=
this
.
driverName
;
data
[
'driver_mobile_number'
]
=
this
.
driverMobileNumber
;
data
[
'tpc_applicable'
]
=
this
.
tpcApplicable
;
data
[
'requested_tpc_amount'
]
=
this
.
requestedTpcAmount
;
data
[
'level1_tpc_approved_amount'
]
=
this
.
level1TpcApprovedAmount
;
data
[
'level2_tpc_approved_amount'
]
=
this
.
level2TpcApprovedAmount
;
data
[
'tpc_payment_mode'
]
=
this
.
tpcPaymentMode
;
data
[
'tpc_payment_reference_no'
]
=
this
.
tpcPaymentReferenceNo
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'order_number'
]
=
orderNumber
;
data
[
'order_number_hash'
]
=
orderNumberHash
;
data
[
'acc_id'
]
=
accId
;
data
[
'ref_type'
]
=
refType
;
data
[
'ref_id'
]
=
refId
;
data
[
'sales_person_emp_id'
]
=
salesPersonEmpId
;
data
[
'entered_emp_id'
]
=
enteredEmpId
;
data
[
'dispatch_state_id'
]
=
dispatchStateId
;
data
[
'dispatch_district_id'
]
=
dispatchDistrictId
;
data
[
'dispatch_sub_location_id'
]
=
dispatchSubLocationId
;
data
[
'dispatch_pincode'
]
=
dispatchPincode
;
data
[
'dispatch_address'
]
=
dispatchAddress
;
data
[
'basic_amount'
]
=
basicAmount
;
data
[
'cgst_amount'
]
=
cgstAmount
;
data
[
'sgst_amount'
]
=
sgstAmount
;
data
[
'igst_amount'
]
=
igstAmount
;
data
[
'paid_amount'
]
=
paidAmount
;
data
[
'total_amount'
]
=
totalAmount
;
data
[
'status'
]
=
status
;
data
[
'order_received_date'
]
=
orderReceivedDate
;
data
[
'scheduled_dispatch_date'
]
=
scheduledDispatchDate
;
data
[
'otp'
]
=
otp
;
data
[
'note'
]
=
note
;
data
[
'po_view_file_name'
]
=
poViewFileName
;
data
[
'po_dir_file_path'
]
=
poDirFilePath
;
data
[
'unloading_scope'
]
=
unloadingScope
;
data
[
'freight_scope'
]
=
freightScope
;
data
[
'erection_scope'
]
=
erectionScope
;
data
[
'sale_order_number'
]
=
saleOrderNumber
;
data
[
'invoice_number'
]
=
invoiceNumber
;
data
[
'vehicle_number'
]
=
vehicleNumber
;
data
[
'driver_name'
]
=
driverName
;
data
[
'driver_mobile_number'
]
=
driverMobileNumber
;
data
[
'tpc_applicable'
]
=
tpcApplicable
;
data
[
'requested_tpc_amount'
]
=
requestedTpcAmount
;
data
[
'level1_tpc_approved_amount'
]
=
level1TpcApprovedAmount
;
data
[
'level2_tpc_approved_amount'
]
=
level2TpcApprovedAmount
;
data
[
'tpc_payment_mode'
]
=
tpcPaymentMode
;
data
[
'tpc_payment_reference_no'
]
=
tpcPaymentReferenceNo
;
data
[
'tpc_payment_attachment_dir_file_path'
]
=
this
.
tpcPaymentAttachmentDirFilePath
;
tpcPaymentAttachmentDirFilePath
;
data
[
'tpc_payment_attachement_view_file_name'
]
=
this
.
tpcPaymentAttachementViewFileName
;
data
[
'tpc_status'
]
=
this
.
tpcStatus
;
data
[
'tpc_agent_id'
]
=
this
.
tpcAgentId
;
data
[
'is_exist'
]
=
this
.
isExist
;
data
[
'created_datetime'
]
=
this
.
createdDatetime
;
data
[
'updated_datetime'
]
=
this
.
updatedDatetime
;
tpcPaymentAttachementViewFileName
;
data
[
'tpc_status'
]
=
tpcStatus
;
data
[
'tpc_agent_id'
]
=
tpcAgentId
;
data
[
'is_exist'
]
=
isExist
;
data
[
'created_datetime'
]
=
createdDatetime
;
data
[
'updated_datetime'
]
=
updatedDatetime
;
return
data
;
}
}
...
...
@@ -448,31 +453,32 @@ class Payments {
String
?
datetime
;
String
?
employeeName
;
Payments
(
{
this
.
id
,
this
.
accId
,
this
.
refType
,
this
.
refId
,
this
.
description
,
this
.
amount
,
this
.
paymentDate
,
this
.
paymentType
,
this
.
refNo
,
this
.
empId
,
this
.
otp
,
this
.
attachment
,
this
.
attachmentDirFilePath
,
this
.
attachmentViewFileName
,
this
.
approvalRemarks
,
this
.
approvalStatus
,
this
.
approvalEmpId
,
this
.
approvalDatetime
,
this
.
status
,
this
.
isExist
,
this
.
delEmpId
,
this
.
delDatetime
,
this
.
datetime
,
this
.
employeeName
});
Payments
({
this
.
id
,
this
.
accId
,
this
.
refType
,
this
.
refId
,
this
.
description
,
this
.
amount
,
this
.
paymentDate
,
this
.
paymentType
,
this
.
refNo
,
this
.
empId
,
this
.
otp
,
this
.
attachment
,
this
.
attachmentDirFilePath
,
this
.
attachmentViewFileName
,
this
.
approvalRemarks
,
this
.
approvalStatus
,
this
.
approvalEmpId
,
this
.
approvalDatetime
,
this
.
status
,
this
.
isExist
,
this
.
delEmpId
,
this
.
delDatetime
,
this
.
datetime
,
this
.
employeeName
,
});
Payments
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
id
=
json
[
'id'
];
...
...
@@ -502,31 +508,31 @@ class Payments {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'acc_id'
]
=
this
.
accId
;
data
[
'ref_type'
]
=
this
.
refType
;
data
[
'ref_id'
]
=
this
.
refId
;
data
[
'description'
]
=
this
.
description
;
data
[
'amount'
]
=
this
.
amount
;
data
[
'payment_date'
]
=
this
.
paymentDate
;
data
[
'payment_type'
]
=
this
.
paymentType
;
data
[
'ref_no'
]
=
this
.
refNo
;
data
[
'emp_id'
]
=
this
.
empId
;
data
[
'otp'
]
=
this
.
otp
;
data
[
'attachment'
]
=
this
.
attachment
;
data
[
'attachment_dir_file_path'
]
=
this
.
attachmentDirFilePath
;
data
[
'attachment_view_file_name'
]
=
this
.
attachmentViewFileName
;
data
[
'approval_remarks'
]
=
this
.
approvalRemarks
;
data
[
'approval_status'
]
=
this
.
approvalStatus
;
data
[
'approval_emp_id'
]
=
this
.
approvalEmpId
;
data
[
'approval_datetime'
]
=
this
.
approvalDatetime
;
data
[
'status'
]
=
this
.
status
;
data
[
'is_exist'
]
=
this
.
isExist
;
data
[
'del_emp_id'
]
=
this
.
delEmpId
;
data
[
'del_datetime'
]
=
this
.
delDatetime
;
data
[
'datetime'
]
=
this
.
datetime
;
data
[
'employee_name'
]
=
this
.
employeeName
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'acc_id'
]
=
accId
;
data
[
'ref_type'
]
=
refType
;
data
[
'ref_id'
]
=
refId
;
data
[
'description'
]
=
description
;
data
[
'amount'
]
=
amount
;
data
[
'payment_date'
]
=
paymentDate
;
data
[
'payment_type'
]
=
paymentType
;
data
[
'ref_no'
]
=
refNo
;
data
[
'emp_id'
]
=
empId
;
data
[
'otp'
]
=
otp
;
data
[
'attachment'
]
=
attachment
;
data
[
'attachment_dir_file_path'
]
=
attachmentDirFilePath
;
data
[
'attachment_view_file_name'
]
=
attachmentViewFileName
;
data
[
'approval_remarks'
]
=
approvalRemarks
;
data
[
'approval_status'
]
=
approvalStatus
;
data
[
'approval_emp_id'
]
=
approvalEmpId
;
data
[
'approval_datetime'
]
=
approvalDatetime
;
data
[
'status'
]
=
status
;
data
[
'is_exist'
]
=
isExist
;
data
[
'del_emp_id'
]
=
delEmpId
;
data
[
'del_datetime'
]
=
delDatetime
;
data
[
'datetime'
]
=
datetime
;
data
[
'employee_name'
]
=
employeeName
;
return
data
;
}
}
...
...
@@ -556,30 +562,31 @@ class AccountDetails {
String
?
accManager
;
String
?
owner
;
AccountDetails
(
{
this
.
id
,
this
.
tempId
,
this
.
ownerId
,
this
.
accManagerId
,
this
.
name
,
this
.
salutationName
,
this
.
subLocality
,
this
.
district
,
this
.
state
,
this
.
pincode
,
this
.
address
,
this
.
date
,
this
.
source
,
this
.
reference
,
this
.
segment
,
this
.
team
,
this
.
gstNumber
,
this
.
isExists
,
this
.
createdDatetime
,
this
.
updatedDatetime
,
this
.
aage
,
this
.
accManager
,
this
.
owner
});
AccountDetails
({
this
.
id
,
this
.
tempId
,
this
.
ownerId
,
this
.
accManagerId
,
this
.
name
,
this
.
salutationName
,
this
.
subLocality
,
this
.
district
,
this
.
state
,
this
.
pincode
,
this
.
address
,
this
.
date
,
this
.
source
,
this
.
reference
,
this
.
segment
,
this
.
team
,
this
.
gstNumber
,
this
.
isExists
,
this
.
createdDatetime
,
this
.
updatedDatetime
,
this
.
aage
,
this
.
accManager
,
this
.
owner
,
});
AccountDetails
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
id
=
json
[
'id'
];
...
...
@@ -608,30 +615,30 @@ class AccountDetails {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'temp_id'
]
=
this
.
tempId
;
data
[
'owner_id'
]
=
this
.
ownerId
;
data
[
'acc_manager_id'
]
=
this
.
accManagerId
;
data
[
'name'
]
=
this
.
name
;
data
[
'salutation_name'
]
=
this
.
salutationName
;
data
[
'sub_locality'
]
=
this
.
subLocality
;
data
[
'district'
]
=
this
.
district
;
data
[
'state'
]
=
this
.
state
;
data
[
'pincode'
]
=
this
.
pincode
;
data
[
'address'
]
=
this
.
address
;
data
[
'date'
]
=
this
.
date
;
data
[
'source'
]
=
this
.
source
;
data
[
'reference'
]
=
this
.
reference
;
data
[
'segment'
]
=
this
.
segment
;
data
[
'team'
]
=
this
.
team
;
data
[
'gst_number'
]
=
this
.
gstNumber
;
data
[
'is_exists'
]
=
this
.
isExists
;
data
[
'created_datetime'
]
=
this
.
createdDatetime
;
data
[
'updated_datetime'
]
=
this
.
updatedDatetime
;
data
[
'aage'
]
=
this
.
aage
;
data
[
'acc_manager'
]
=
this
.
accManager
;
data
[
'owner'
]
=
this
.
owner
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'temp_id'
]
=
tempId
;
data
[
'owner_id'
]
=
ownerId
;
data
[
'acc_manager_id'
]
=
accManagerId
;
data
[
'name'
]
=
name
;
data
[
'salutation_name'
]
=
salutationName
;
data
[
'sub_locality'
]
=
subLocality
;
data
[
'district'
]
=
district
;
data
[
'state'
]
=
state
;
data
[
'pincode'
]
=
pincode
;
data
[
'address'
]
=
address
;
data
[
'date'
]
=
date
;
data
[
'source'
]
=
source
;
data
[
'reference'
]
=
reference
;
data
[
'segment'
]
=
segment
;
data
[
'team'
]
=
team
;
data
[
'gst_number'
]
=
gstNumber
;
data
[
'is_exists'
]
=
isExists
;
data
[
'created_datetime'
]
=
createdDatetime
;
data
[
'updated_datetime'
]
=
updatedDatetime
;
data
[
'aage'
]
=
aage
;
data
[
'acc_manager'
]
=
accManager
;
data
[
'owner'
]
=
owner
;
return
data
;
}
}
lib/Models/crmModels/crmSelectedProductDetailsResponse.dart
View file @
7210793a
...
...
@@ -3,21 +3,26 @@ class crmSelectedProductDetailsResponse {
String
?
error
;
String
?
message
;
crmSelectedProductDetailsResponse
({
this
.
productsData
,
this
.
error
,
this
.
message
});
crmSelectedProductDetailsResponse
({
this
.
productsData
,
this
.
error
,
this
.
message
,
});
crmSelectedProductDetailsResponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
productsData
=
json
[
'data'
]
!=
null
?
new
ProductsData
.
fromJson
(
json
[
'data'
])
:
null
;
productsData
=
json
[
'data'
]
!=
null
?
ProductsData
.
fromJson
(
json
[
'data'
])
:
null
;
error
=
json
[
'error'
];
message
=
json
[
'message'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
if
(
this
.
productsData
!=
null
)
{
data
[
'data'
]
=
this
.
productsData
!.
toJson
();
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
if
(
productsData
!=
null
)
{
data
[
'data'
]
=
productsData
!.
toJson
();
}
data
[
'error'
]
=
this
.
error
;
data
[
'message'
]
=
this
.
message
;
data
[
'error'
]
=
error
;
data
[
'message'
]
=
message
;
return
data
;
}
}
...
...
@@ -39,22 +44,23 @@ class ProductsData {
String
?
createdDatetime
;
String
?
updatedDatetime
;
ProductsData
(
{
this
.
id
,
this
.
name
,
this
.
application
,
this
.
rating
,
this
.
ratingKw
,
this
.
ordStatus
,
this
.
description
,
this
.
price
,
this
.
createdOn
,
this
.
empId
,
this
.
materialMasterId
,
this
.
isGenerator
,
this
.
isExists
,
this
.
createdDatetime
,
this
.
updatedDatetime
});
ProductsData
({
this
.
id
,
this
.
name
,
this
.
application
,
this
.
rating
,
this
.
ratingKw
,
this
.
ordStatus
,
this
.
description
,
this
.
price
,
this
.
createdOn
,
this
.
empId
,
this
.
materialMasterId
,
this
.
isGenerator
,
this
.
isExists
,
this
.
createdDatetime
,
this
.
updatedDatetime
,
});
ProductsData
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
id
=
json
[
'id'
];
...
...
@@ -75,22 +81,22 @@ class ProductsData {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'name'
]
=
this
.
name
;
data
[
'application'
]
=
this
.
application
;
data
[
'rating'
]
=
this
.
rating
;
data
[
'rating_kw'
]
=
this
.
ratingKw
;
data
[
'ord_status'
]
=
this
.
ordStatus
;
data
[
'description'
]
=
this
.
description
;
data
[
'price'
]
=
this
.
price
;
data
[
'created_on'
]
=
this
.
createdOn
;
data
[
'emp_id'
]
=
this
.
empId
;
data
[
'material_master_id'
]
=
this
.
materialMasterId
;
data
[
'is_generator'
]
=
this
.
isGenerator
;
data
[
'is_exists'
]
=
this
.
isExists
;
data
[
'created_datetime'
]
=
this
.
createdDatetime
;
data
[
'updated_datetime'
]
=
this
.
updatedDatetime
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'name'
]
=
name
;
data
[
'application'
]
=
application
;
data
[
'rating'
]
=
rating
;
data
[
'rating_kw'
]
=
ratingKw
;
data
[
'ord_status'
]
=
ordStatus
;
data
[
'description'
]
=
description
;
data
[
'price'
]
=
price
;
data
[
'created_on'
]
=
createdOn
;
data
[
'emp_id'
]
=
empId
;
data
[
'material_master_id'
]
=
materialMasterId
;
data
[
'is_generator'
]
=
isGenerator
;
data
[
'is_exists'
]
=
isExists
;
data
[
'created_datetime'
]
=
createdDatetime
;
data
[
'updated_datetime'
]
=
updatedDatetime
;
return
data
;
}
}
lib/Models/crmModels/crmUniversalSearchResponse.dart
View file @
7210793a
...
...
@@ -5,26 +5,31 @@ class crmUniversalSearchResponse {
String
?
error
;
String
?
message
;
crmUniversalSearchResponse
(
{
this
.
accounts
,
this
.
enquires
,
this
.
leads
,
this
.
error
,
this
.
message
});
crmUniversalSearchResponse
({
this
.
accounts
,
this
.
enquires
,
this
.
leads
,
this
.
error
,
this
.
message
,
});
crmUniversalSearchResponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
if
(
json
[
'accounts'
]
!=
null
)
{
accounts
=
<
Accounts
>[];
json
[
'accounts'
].
forEach
((
v
)
{
accounts
!.
add
(
new
Accounts
.
fromJson
(
v
));
accounts
!.
add
(
Accounts
.
fromJson
(
v
));
});
}
if
(
json
[
'enquires'
]
!=
null
)
{
enquires
=
<
Enquires
>[];
json
[
'enquires'
].
forEach
((
v
)
{
enquires
!.
add
(
new
Enquires
.
fromJson
(
v
));
enquires
!.
add
(
Enquires
.
fromJson
(
v
));
});
}
if
(
json
[
'leads'
]
!=
null
)
{
leads
=
<
Leads
>[];
json
[
'leads'
].
forEach
((
v
)
{
leads
!.
add
(
new
Leads
.
fromJson
(
v
));
leads
!.
add
(
Leads
.
fromJson
(
v
));
});
}
error
=
json
[
'error'
];
...
...
@@ -32,18 +37,18 @@ class crmUniversalSearchResponse {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
if
(
this
.
accounts
!=
null
)
{
data
[
'accounts'
]
=
this
.
accounts
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
if
(
accounts
!=
null
)
{
data
[
'accounts'
]
=
accounts
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
if
(
this
.
enquires
!=
null
)
{
data
[
'enquires'
]
=
this
.
enquires
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
if
(
enquires
!=
null
)
{
data
[
'enquires'
]
=
enquires
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
if
(
this
.
leads
!=
null
)
{
data
[
'leads'
]
=
this
.
leads
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
if
(
leads
!=
null
)
{
data
[
'leads'
]
=
leads
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
data
[
'error'
]
=
this
.
error
;
data
[
'message'
]
=
this
.
message
;
data
[
'error'
]
=
error
;
data
[
'message'
]
=
message
;
return
data
;
}
}
...
...
@@ -56,13 +61,14 @@ class Accounts {
String
?
conmob
;
String
?
aaddress
;
Accounts
(
{
this
.
aid
,
this
.
aname
,
this
.
accman
,
this
.
conper
,
this
.
conmob
,
this
.
aaddress
});
Accounts
({
this
.
aid
,
this
.
aname
,
this
.
accman
,
this
.
conper
,
this
.
conmob
,
this
.
aaddress
,
});
Accounts
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
aid
=
json
[
'aid'
];
...
...
@@ -74,13 +80,13 @@ class Accounts {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'aid'
]
=
this
.
aid
;
data
[
'aname'
]
=
this
.
aname
;
data
[
'accman'
]
=
this
.
accman
;
data
[
'conper'
]
=
this
.
conper
;
data
[
'conmob'
]
=
this
.
conmob
;
data
[
'aaddress'
]
=
this
.
aaddress
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'aid'
]
=
aid
;
data
[
'aname'
]
=
aname
;
data
[
'accman'
]
=
accman
;
data
[
'conper'
]
=
conper
;
data
[
'conmob'
]
=
conmob
;
data
[
'aaddress'
]
=
aaddress
;
return
data
;
}
}
...
...
@@ -118,38 +124,39 @@ class Enquires {
String
?
updatedDatetime
;
String
?
refName
;
Enquires
(
{
this
.
id
,
this
.
refType
,
this
.
refId
,
this
.
sourceId
,
this
.
referenceId
,
this
.
companyId
,
this
.
name
,
this
.
companyName
,
this
.
mobile
,
this
.
altMobile
,
this
.
emailId
,
this
.
country
,
this
.
state
,
this
.
district
,
this
.
subLocation
,
this
.
address
,
this
.
product
,
this
.
requirement
,
this
.
extraInfo
,
this
.
feedbackStatus
,
this
.
enquiryManagerEmpId
,
this
.
openStatus
,
this
.
closingReasonId
,
this
.
closingLeadId
,
this
.
closingEmpId
,
this
.
closingDatetime
,
this
.
enteredEmpId
,
this
.
isExist
,
this
.
createdDatetime
,
this
.
updatedDatetime
,
this
.
refName
});
Enquires
({
this
.
id
,
this
.
refType
,
this
.
refId
,
this
.
sourceId
,
this
.
referenceId
,
this
.
companyId
,
this
.
name
,
this
.
companyName
,
this
.
mobile
,
this
.
altMobile
,
this
.
emailId
,
this
.
country
,
this
.
state
,
this
.
district
,
this
.
subLocation
,
this
.
address
,
this
.
product
,
this
.
requirement
,
this
.
extraInfo
,
this
.
feedbackStatus
,
this
.
enquiryManagerEmpId
,
this
.
openStatus
,
this
.
closingReasonId
,
this
.
closingLeadId
,
this
.
closingEmpId
,
this
.
closingDatetime
,
this
.
enteredEmpId
,
this
.
isExist
,
this
.
createdDatetime
,
this
.
updatedDatetime
,
this
.
refName
,
});
Enquires
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
id
=
json
[
'id'
];
...
...
@@ -186,38 +193,38 @@ class Enquires {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'ref_type'
]
=
this
.
refType
;
data
[
'ref_id'
]
=
this
.
refId
;
data
[
'source_id'
]
=
this
.
sourceId
;
data
[
'reference_id'
]
=
this
.
referenceId
;
data
[
'company_id'
]
=
this
.
companyId
;
data
[
'name'
]
=
this
.
name
;
data
[
'company_name'
]
=
this
.
companyName
;
data
[
'mobile'
]
=
this
.
mobile
;
data
[
'alt_mobile'
]
=
this
.
altMobile
;
data
[
'email_id'
]
=
this
.
emailId
;
data
[
'country'
]
=
this
.
country
;
data
[
'state'
]
=
this
.
state
;
data
[
'district'
]
=
this
.
district
;
data
[
'sub_location'
]
=
this
.
subLocation
;
data
[
'address'
]
=
this
.
address
;
data
[
'product'
]
=
this
.
product
;
data
[
'requirement'
]
=
this
.
requirement
;
data
[
'extra_info'
]
=
this
.
extraInfo
;
data
[
'feedback_status'
]
=
this
.
feedbackStatus
;
data
[
'enquiry_manager_emp_id'
]
=
this
.
enquiryManagerEmpId
;
data
[
'open_status'
]
=
this
.
openStatus
;
data
[
'closing_reason_id'
]
=
this
.
closingReasonId
;
data
[
'closing_lead_id'
]
=
this
.
closingLeadId
;
data
[
'closing_emp_id'
]
=
this
.
closingEmpId
;
data
[
'closing_datetime'
]
=
this
.
closingDatetime
;
data
[
'entered_emp_id'
]
=
this
.
enteredEmpId
;
data
[
'is_exist'
]
=
this
.
isExist
;
data
[
'created_datetime'
]
=
this
.
createdDatetime
;
data
[
'updated_datetime'
]
=
this
.
updatedDatetime
;
data
[
'ref_name'
]
=
this
.
refName
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'ref_type'
]
=
refType
;
data
[
'ref_id'
]
=
refId
;
data
[
'source_id'
]
=
sourceId
;
data
[
'reference_id'
]
=
referenceId
;
data
[
'company_id'
]
=
companyId
;
data
[
'name'
]
=
name
;
data
[
'company_name'
]
=
companyName
;
data
[
'mobile'
]
=
mobile
;
data
[
'alt_mobile'
]
=
altMobile
;
data
[
'email_id'
]
=
emailId
;
data
[
'country'
]
=
country
;
data
[
'state'
]
=
state
;
data
[
'district'
]
=
district
;
data
[
'sub_location'
]
=
subLocation
;
data
[
'address'
]
=
address
;
data
[
'product'
]
=
product
;
data
[
'requirement'
]
=
requirement
;
data
[
'extra_info'
]
=
extraInfo
;
data
[
'feedback_status'
]
=
feedbackStatus
;
data
[
'enquiry_manager_emp_id'
]
=
enquiryManagerEmpId
;
data
[
'open_status'
]
=
openStatus
;
data
[
'closing_reason_id'
]
=
closingReasonId
;
data
[
'closing_lead_id'
]
=
closingLeadId
;
data
[
'closing_emp_id'
]
=
closingEmpId
;
data
[
'closing_datetime'
]
=
closingDatetime
;
data
[
'entered_emp_id'
]
=
enteredEmpId
;
data
[
'is_exist'
]
=
isExist
;
data
[
'created_datetime'
]
=
createdDatetime
;
data
[
'updated_datetime'
]
=
updatedDatetime
;
data
[
'ref_name'
]
=
refName
;
return
data
;
}
}
...
...
@@ -230,13 +237,14 @@ class Leads {
String
?
conmob
;
String
?
aaddress
;
Leads
(
{
this
.
lid
,
this
.
aname
,
this
.
accman
,
this
.
conper
,
this
.
conmob
,
this
.
aaddress
});
Leads
({
this
.
lid
,
this
.
aname
,
this
.
accman
,
this
.
conper
,
this
.
conmob
,
this
.
aaddress
,
});
Leads
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
lid
=
json
[
'lid'
];
...
...
@@ -248,13 +256,13 @@ class Leads {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'lid'
]
=
this
.
lid
;
data
[
'aname'
]
=
this
.
aname
;
data
[
'accman'
]
=
this
.
accman
;
data
[
'conper'
]
=
this
.
conper
;
data
[
'conmob'
]
=
this
.
conmob
;
data
[
'aaddress'
]
=
this
.
aaddress
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'lid'
]
=
lid
;
data
[
'aname'
]
=
aname
;
data
[
'accman'
]
=
accman
;
data
[
'conper'
]
=
conper
;
data
[
'conmob'
]
=
conmob
;
data
[
'aaddress'
]
=
aaddress
;
return
data
;
}
}
lib/Models/financeModels/addDirectPaymentResponse.dart
View file @
7210793a
...
...
@@ -5,30 +5,31 @@ class addDirectPaymentResponse {
String
?
error
;
String
?
message
;
addDirectPaymentResponse
(
{
this
.
accounts
,
this
.
paymentAccounts
,
this
.
paymentModes
,
this
.
error
,
this
.
message
});
addDirectPaymentResponse
({
this
.
accounts
,
this
.
paymentAccounts
,
this
.
paymentModes
,
this
.
error
,
this
.
message
,
});
addDirectPaymentResponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
if
(
json
[
'accounts'
]
!=
null
)
{
accounts
=
<
DirectAccounts
>[];
json
[
'accounts'
].
forEach
((
v
)
{
accounts
!.
add
(
new
DirectAccounts
.
fromJson
(
v
));
accounts
!.
add
(
DirectAccounts
.
fromJson
(
v
));
});
}
if
(
json
[
'payment_accounts'
]
!=
null
)
{
paymentAccounts
=
<
DirectPaymentAccounts
>[];
json
[
'payment_accounts'
].
forEach
((
v
)
{
paymentAccounts
!.
add
(
new
DirectPaymentAccounts
.
fromJson
(
v
));
paymentAccounts
!.
add
(
DirectPaymentAccounts
.
fromJson
(
v
));
});
}
if
(
json
[
'payment_modes'
]
!=
null
)
{
paymentModes
=
<
DirectPaymentModes
>[];
json
[
'payment_modes'
].
forEach
((
v
)
{
paymentModes
!.
add
(
new
DirectPaymentModes
.
fromJson
(
v
));
paymentModes
!.
add
(
DirectPaymentModes
.
fromJson
(
v
));
});
}
error
=
json
[
'error'
];
...
...
@@ -36,20 +37,19 @@ class addDirectPaymentResponse {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
if
(
this
.
accounts
!=
null
)
{
data
[
'accounts'
]
=
this
.
accounts
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
if
(
accounts
!=
null
)
{
data
[
'accounts'
]
=
accounts
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
if
(
this
.
paymentAccounts
!=
null
)
{
if
(
paymentAccounts
!=
null
)
{
data
[
'payment_accounts'
]
=
this
.
paymentAccounts
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
paymentAccounts
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
if
(
this
.
paymentModes
!=
null
)
{
data
[
'payment_modes'
]
=
this
.
paymentModes
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
if
(
paymentModes
!=
null
)
{
data
[
'payment_modes'
]
=
paymentModes
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
data
[
'error'
]
=
this
.
error
;
data
[
'message'
]
=
this
.
message
;
data
[
'error'
]
=
error
;
data
[
'message'
]
=
message
;
return
data
;
}
}
...
...
@@ -66,12 +66,13 @@ class DirectAccounts {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'name'
]
=
this
.
name
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'name'
]
=
name
;
return
data
;
}
}
class
DirectPaymentAccounts
{
String
?
id
;
String
?
name
;
...
...
@@ -84,12 +85,13 @@ class DirectPaymentAccounts {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'name'
]
=
this
.
name
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'name'
]
=
name
;
return
data
;
}
}
class
DirectPaymentModes
{
String
?
id
;
String
?
name
;
...
...
@@ -102,9 +104,9 @@ class DirectPaymentModes {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'name'
]
=
this
.
name
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'name'
]
=
name
;
return
data
;
}
}
\ No newline at end of file
}
lib/Models/financeModels/addPaymentRequestionResponse.dart
View file @
7210793a
...
...
@@ -6,60 +6,55 @@ class addPaymentRequestionResponse {
List
<
String
>?
requestingPurposes
;
List
<
Employees
>?
employees
;
addPaymentRequestionResponse
(
{
this
.
error
,
this
.
message
,
this
.
accounts
,
this
.
paymentModes
,
this
.
requestingPurposes
,
this
.
employees
});
addPaymentRequestionResponse
({
this
.
error
,
this
.
message
,
this
.
accounts
,
this
.
paymentModes
,
this
.
requestingPurposes
,
this
.
employees
,
});
addPaymentRequestionResponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
if
(
json
[
'accounts'
]
!=
null
)
{
accounts
=
<
Accounts
>[];
json
[
'accounts'
].
forEach
((
v
)
{
accounts
!.
add
(
new
Accounts
.
fromJson
(
v
));
accounts
!.
add
(
Accounts
.
fromJson
(
v
));
});
}
if
(
json
[
'payment_modes'
]
!=
null
)
{
paymentModes
=
<
PaymentModes
>[];
json
[
'payment_modes'
].
forEach
((
v
)
{
paymentModes
!.
add
(
new
PaymentModes
.
fromJson
(
v
));
paymentModes
!.
add
(
PaymentModes
.
fromJson
(
v
));
});
}
error
=
json
[
'error'
];
message
=
json
[
'message'
];
if
(
json
[
'requesting_purposes'
]!=
null
){
if
(
json
[
'requesting_purposes'
]
!=
null
)
{
requestingPurposes
=
json
[
'requesting_purposes'
].
cast
<
String
>();
}
if
(
json
[
'employees'
]
!=
null
)
{
employees
=
<
Employees
>[];
json
[
'employees'
].
forEach
((
v
)
{
employees
!.
add
(
new
Employees
.
fromJson
(
v
));
employees
!.
add
(
Employees
.
fromJson
(
v
));
});
}
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
if
(
this
.
accounts
!=
null
)
{
data
[
'accounts'
]
=
this
.
accounts
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
if
(
accounts
!=
null
)
{
data
[
'accounts'
]
=
accounts
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
if
(
this
.
paymentModes
!=
null
)
{
data
[
'payment_modes'
]
=
this
.
paymentModes
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
if
(
paymentModes
!=
null
)
{
data
[
'payment_modes'
]
=
paymentModes
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
data
[
'error'
]
=
this
.
error
;
data
[
'message'
]
=
this
.
message
;
data
[
'requesting_purposes'
]
=
this
.
requestingPurposes
;
if
(
this
.
employees
!=
null
)
{
data
[
'employees'
]
=
this
.
employees
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
data
[
'error'
]
=
error
;
data
[
'message'
]
=
message
;
data
[
'requesting_purposes'
]
=
requestingPurposes
;
if
(
employees
!=
null
)
{
data
[
'employees'
]
=
employees
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
return
data
;
}
...
...
@@ -77,12 +72,13 @@ class Accounts {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'name'
]
=
this
.
name
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'name'
]
=
name
;
return
data
;
}
}
class
PaymentModes
{
String
?
id
;
String
?
name
;
...
...
@@ -95,12 +91,13 @@ class PaymentModes {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'name'
]
=
this
.
name
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'name'
]
=
name
;
return
data
;
}
}
class
Employees
{
String
?
id
;
String
?
name
;
...
...
@@ -113,9 +110,9 @@ class Employees {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'name'
]
=
this
.
name
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'name'
]
=
name
;
return
data
;
}
}
\ No newline at end of file
}
lib/Models/financeModels/addReceiptPaymentResponse.dart
View file @
7210793a
...
...
@@ -5,30 +5,31 @@ class addReceiptPaymentResponse {
String
?
error
;
String
?
message
;
addReceiptPaymentResponse
(
{
this
.
accounts
,
this
.
receiptAccounts
,
this
.
paymentModes
,
this
.
error
,
this
.
message
});
addReceiptPaymentResponse
({
this
.
accounts
,
this
.
receiptAccounts
,
this
.
paymentModes
,
this
.
error
,
this
.
message
,
});
addReceiptPaymentResponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
if
(
json
[
'accounts'
]
!=
null
)
{
accounts
=
<
Accounts
>[];
json
[
'accounts'
].
forEach
((
v
)
{
accounts
!.
add
(
new
Accounts
.
fromJson
(
v
));
accounts
!.
add
(
Accounts
.
fromJson
(
v
));
});
}
if
(
json
[
'receipt_accounts'
]
!=
null
)
{
receiptAccounts
=
<
ReceiptAccounts
>[];
json
[
'receipt_accounts'
].
forEach
((
v
)
{
receiptAccounts
!.
add
(
new
ReceiptAccounts
.
fromJson
(
v
));
receiptAccounts
!.
add
(
ReceiptAccounts
.
fromJson
(
v
));
});
}
if
(
json
[
'payment_modes'
]
!=
null
)
{
paymentModes
=
<
PaymentModes
>[];
json
[
'payment_modes'
].
forEach
((
v
)
{
paymentModes
!.
add
(
new
PaymentModes
.
fromJson
(
v
));
paymentModes
!.
add
(
PaymentModes
.
fromJson
(
v
));
});
}
error
=
json
[
'error'
];
...
...
@@ -36,20 +37,19 @@ class addReceiptPaymentResponse {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
if
(
this
.
accounts
!=
null
)
{
data
[
'accounts'
]
=
this
.
accounts
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
if
(
accounts
!=
null
)
{
data
[
'accounts'
]
=
accounts
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
if
(
this
.
receiptAccounts
!=
null
)
{
if
(
receiptAccounts
!=
null
)
{
data
[
'receipt_accounts'
]
=
this
.
receiptAccounts
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
receiptAccounts
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
if
(
this
.
paymentModes
!=
null
)
{
data
[
'payment_modes'
]
=
this
.
paymentModes
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
if
(
paymentModes
!=
null
)
{
data
[
'payment_modes'
]
=
paymentModes
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
data
[
'error'
]
=
this
.
error
;
data
[
'message'
]
=
this
.
message
;
data
[
'error'
]
=
error
;
data
[
'message'
]
=
message
;
return
data
;
}
}
...
...
@@ -66,12 +66,13 @@ class Accounts {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'name'
]
=
this
.
name
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'name'
]
=
name
;
return
data
;
}
}
class
ReceiptAccounts
{
String
?
id
;
String
?
name
;
...
...
@@ -84,12 +85,13 @@ class ReceiptAccounts {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'name'
]
=
this
.
name
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'name'
]
=
name
;
return
data
;
}
}
class
PaymentModes
{
String
?
id
;
String
?
name
;
...
...
@@ -102,9 +104,9 @@ class PaymentModes {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'name'
]
=
this
.
name
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'name'
]
=
name
;
return
data
;
}
}
\ No newline at end of file
}
lib/Models/financeModels/financeDashboardPagesResponse.dart
View file @
7210793a
...
...
@@ -3,28 +3,31 @@ class financeDashboardPagesResponse {
List
<
PagesAccessible
>?
pagesAccessible
;
String
?
message
;
financeDashboardPagesResponse
(
{
this
.
error
,
this
.
pagesAccessible
,
this
.
message
});
financeDashboardPagesResponse
({
this
.
error
,
this
.
pagesAccessible
,
this
.
message
,
});
financeDashboardPagesResponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
error
=
json
[
'error'
];
if
(
json
[
'pages_accessible'
]
!=
null
)
{
pagesAccessible
=
<
PagesAccessible
>[];
json
[
'pages_accessible'
].
forEach
((
v
)
{
pagesAccessible
!.
add
(
new
PagesAccessible
.
fromJson
(
v
));
pagesAccessible
!.
add
(
PagesAccessible
.
fromJson
(
v
));
});
}
message
=
json
[
'message'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'error'
]
=
this
.
error
;
if
(
this
.
pagesAccessible
!=
null
)
{
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'error'
]
=
error
;
if
(
pagesAccessible
!=
null
)
{
data
[
'pages_accessible'
]
=
this
.
pagesAccessible
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
pagesAccessible
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
data
[
'message'
]
=
this
.
message
;
data
[
'message'
]
=
message
;
return
data
;
}
}
...
...
@@ -43,10 +46,10 @@ class PagesAccessible {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'page_name'
]
=
this
.
pageName
;
data
[
'mode'
]
=
this
.
mode
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'page_name'
]
=
pageName
;
data
[
'mode'
]
=
mode
;
return
data
;
}
}
lib/Models/financeModels/paymentRequesitionListsResponse.dart
View file @
7210793a
...
...
@@ -3,14 +3,17 @@ class paymentRequesitionListsResponse {
String
?
error
;
String
?
message
;
paymentRequesitionListsResponse
(
{
this
.
requistionList
,
this
.
error
,
this
.
message
});
paymentRequesitionListsResponse
({
this
.
requistionList
,
this
.
error
,
this
.
message
,
});
paymentRequesitionListsResponse
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
if
(
json
[
'requistion_list'
]
!=
null
)
{
requistionList
=
<
RequistionList
>[];
json
[
'requistion_list'
].
forEach
((
v
)
{
requistionList
!.
add
(
new
RequistionList
.
fromJson
(
v
));
requistionList
!.
add
(
RequistionList
.
fromJson
(
v
));
});
}
error
=
json
[
'error'
];
...
...
@@ -18,13 +21,12 @@ class paymentRequesitionListsResponse {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>();
if
(
this
.
requistionList
!=
null
)
{
data
[
'requistion_list'
]
=
this
.
requistionList
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>{};
if
(
requistionList
!=
null
)
{
data
[
'requistion_list'
]
=
requistionList
!.
map
((
v
)
=>
v
.
toJson
()).
toList
();
}
data
[
'error'
]
=
this
.
error
;
data
[
'message'
]
=
this
.
message
;
data
[
'error'
]
=
error
;
data
[
'message'
]
=
message
;
return
data
;
}
}
...
...
@@ -53,29 +55,30 @@ class RequistionList {
String
?
proposedAccount
;
String
?
proposedAccountId
;
RequistionList
(
{
this
.
id
,
this
.
isProcessedPaymentRequest
,
this
.
accountId
,
this
.
accountName
,
this
.
branch
,
this
.
requestingPurpose
,
this
.
transDis
,
this
.
description
,
this
.
amount
,
this
.
requestMode
,
this
.
status
,
this
.
createdEmployee
,
this
.
level1Employee
,
this
.
level2Employee
,
this
.
level1ApprovalRemarks
,
this
.
level2ApprovalRemarks
,
this
.
attachmentViewFileName
,
this
.
attachmentDirFilePath
,
this
.
date
,
this
.
createdDatetime
,
this
.
proposedAccount
,
this
.
proposedAccountId
});
RequistionList
({
this
.
id
,
this
.
isProcessedPaymentRequest
,
this
.
accountId
,
this
.
accountName
,
this
.
branch
,
this
.
requestingPurpose
,
this
.
transDis
,
this
.
description
,
this
.
amount
,
this
.
requestMode
,
this
.
status
,
this
.
createdEmployee
,
this
.
level1Employee
,
this
.
level2Employee
,
this
.
level1ApprovalRemarks
,
this
.
level2ApprovalRemarks
,
this
.
attachmentViewFileName
,
this
.
attachmentDirFilePath
,
this
.
date
,
this
.
createdDatetime
,
this
.
proposedAccount
,
this
.
proposedAccountId
,
});
RequistionList
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
id
=
json
[
'id'
];
...
...
@@ -103,29 +106,29 @@ class RequistionList {
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>
()
;
data
[
'id'
]
=
this
.
id
;
data
[
'is_processed_payment_request'
]
=
this
.
isProcessedPaymentRequest
;
data
[
'account_id'
]
=
this
.
accountId
;
data
[
'account_name'
]
=
this
.
accountName
;
data
[
'branch'
]
=
this
.
branch
;
data
[
'requesting_purpose'
]
=
this
.
requestingPurpose
;
data
[
'trans_dis'
]
=
this
.
transDis
;
data
[
'description'
]
=
this
.
description
;
data
[
'amount'
]
=
this
.
amount
;
data
[
'request_mode'
]
=
this
.
requestMode
;
data
[
'status'
]
=
this
.
status
;
data
[
'created_employee'
]
=
this
.
createdEmployee
;
data
[
'level1_employee'
]
=
this
.
level1Employee
;
data
[
'level2_employee'
]
=
this
.
level2Employee
;
data
[
'level_1_approval_remarks'
]
=
this
.
level1ApprovalRemarks
;
data
[
'level_2_approval_remarks'
]
=
this
.
level2ApprovalRemarks
;
data
[
'attachment_view_file_name'
]
=
this
.
attachmentViewFileName
;
data
[
'attachment_dir_file_path'
]
=
this
.
attachmentDirFilePath
;
data
[
'date'
]
=
this
.
date
;
data
[
'created_datetime'
]
=
this
.
createdDatetime
;
data
[
'proposed_account'
]
=
this
.
proposedAccount
;
data
[
'proposed_account_id'
]
=
this
.
proposedAccountId
;
final
Map
<
String
,
dynamic
>
data
=
<
String
,
dynamic
>
{}
;
data
[
'id'
]
=
id
;
data
[
'is_processed_payment_request'
]
=
isProcessedPaymentRequest
;
data
[
'account_id'
]
=
accountId
;
data
[
'account_name'
]
=
accountName
;
data
[
'branch'
]
=
branch
;
data
[
'requesting_purpose'
]
=
requestingPurpose
;
data
[
'trans_dis'
]
=
transDis
;
data
[
'description'
]
=
description
;
data
[
'amount'
]
=
amount
;
data
[
'request_mode'
]
=
requestMode
;
data
[
'status'
]
=
status
;
data
[
'created_employee'
]
=
createdEmployee
;
data
[
'level1_employee'
]
=
level1Employee
;
data
[
'level2_employee'
]
=
level2Employee
;
data
[
'level_1_approval_remarks'
]
=
level1ApprovalRemarks
;
data
[
'level_2_approval_remarks'
]
=
level2ApprovalRemarks
;
data
[
'attachment_view_file_name'
]
=
attachmentViewFileName
;
data
[
'attachment_dir_file_path'
]
=
attachmentDirFilePath
;
data
[
'date'
]
=
date
;
data
[
'created_datetime'
]
=
createdDatetime
;
data
[
'proposed_account'
]
=
proposedAccount
;
data
[
'proposed_account_id'
]
=
proposedAccountId
;
return
data
;
}
}
Prev
1
2
3
4
5
6
7
8
…
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