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

17-09

parent 185e0896
...@@ -16,8 +16,8 @@ class crmDashboardResponse { ...@@ -16,8 +16,8 @@ class crmDashboardResponse {
String? message; String? message;
int? sessionExists; int? sessionExists;
crmDashboardResponse( crmDashboardResponse({
{this.hotleads, this.hotleads,
this.pendingTasks, this.pendingTasks,
this.coldleads, this.coldleads,
this.warmleads, this.warmleads,
...@@ -32,44 +32,43 @@ class crmDashboardResponse { ...@@ -32,44 +32,43 @@ class crmDashboardResponse {
this.nearbyLeads, this.nearbyLeads,
this.error, this.error,
this.message, this.message,
this.sessionExists}); this.sessionExists,
});
crmDashboardResponse.fromJson(Map<String, dynamic> json) { crmDashboardResponse.fromJson(Map<String, dynamic> json) {
hotleads = json['hotleads'] != null hotleads =
? new Hotleads.fromJson(json['hotleads']) json['hotleads'] != null ? Hotleads.fromJson(json['hotleads']) : null;
: null; pendingTasks =
pendingTasks = json['pending_tasks'] != null json['pending_tasks'] != null
? new Hotleads.fromJson(json['pending_tasks']) ? 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; : null;
totalleads = json['totalleads'] != null coldleads =
? new Hotleads.fromJson(json['totalleads']) 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; : null;
openleads = json['openleads'] != null openleads =
? new Hotleads.fromJson(json['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; : null;
visits = openEnquiries =
json['visits'] != null ? new Hotleads.fromJson(json['visits']) : null; json['open_enquiries'] != null
calls = json['calls'] != null ? new Hotleads.fromJson(json['calls']) : null; ? Hotleads.fromJson(json['open_enquiries'])
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; : null;
if (json['nearby_leads'] != null) { if (json['nearby_leads'] != null) {
nearbyLeads = <NearbyLeads>[]; nearbyLeads = <NearbyLeads>[];
json['nearby_leads'].forEach((v) { json['nearby_leads'].forEach((v) {
nearbyLeads!.add(new NearbyLeads.fromJson(v)); nearbyLeads!.add(NearbyLeads.fromJson(v));
}); });
} }
error = json['error']; error = json['error'];
...@@ -78,49 +77,49 @@ class crmDashboardResponse { ...@@ -78,49 +77,49 @@ class crmDashboardResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
if (this.hotleads != null) { if (hotleads != null) {
data['hotleads'] = this.hotleads!.toJson(); data['hotleads'] = hotleads!.toJson();
} }
if (this.pendingTasks != null) { if (pendingTasks != null) {
data['pending_tasks'] = this.pendingTasks!.toJson(); data['pending_tasks'] = pendingTasks!.toJson();
} }
if (this.coldleads != null) { if (coldleads != null) {
data['coldleads'] = this.coldleads!.toJson(); data['coldleads'] = coldleads!.toJson();
} }
if (this.warmleads != null) { if (warmleads != null) {
data['warmleads'] = this.warmleads!.toJson(); data['warmleads'] = warmleads!.toJson();
} }
if (this.totalleads != null) { if (totalleads != null) {
data['totalleads'] = this.totalleads!.toJson(); data['totalleads'] = totalleads!.toJson();
} }
if (this.openleads != null) { if (openleads != null) {
data['openleads'] = this.openleads!.toJson(); data['openleads'] = openleads!.toJson();
} }
if (this.visits != null) { if (visits != null) {
data['visits'] = this.visits!.toJson(); data['visits'] = visits!.toJson();
} }
if (this.calls != null) { if (calls != null) {
data['calls'] = this.calls!.toJson(); data['calls'] = calls!.toJson();
} }
if (this.quote != null) { if (quote != null) {
data['quote'] = this.quote!.toJson(); data['quote'] = quote!.toJson();
} }
if (this.orderlost != null) { if (orderlost != null) {
data['orderlost'] = this.orderlost!.toJson(); data['orderlost'] = orderlost!.toJson();
} }
if (this.norequirement != null) { if (norequirement != null) {
data['norequirement'] = this.norequirement!.toJson(); data['norequirement'] = norequirement!.toJson();
} }
if (this.openEnquiries != null) { if (openEnquiries != null) {
data['open_enquiries'] = this.openEnquiries!.toJson(); data['open_enquiries'] = openEnquiries!.toJson();
} }
if (this.nearbyLeads != null) { if (nearbyLeads != null) {
data['nearby_leads'] = this.nearbyLeads!.map((v) => v.toJson()).toList(); data['nearby_leads'] = nearbyLeads!.map((v) => v.toJson()).toList();
} }
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
data['session_exists'] = this.sessionExists; data['session_exists'] = sessionExists;
return data; return data;
} }
} }
...@@ -133,15 +132,14 @@ class Hotleads { ...@@ -133,15 +132,14 @@ class Hotleads {
Hotleads.fromJson(Map<String, dynamic> json) { Hotleads.fromJson(Map<String, dynamic> json) {
count = json['count']; count = json['count'];
filter = filter = json['filter'] != null ? Filter.fromJson(json['filter']) : null;
json['filter'] != null ? new Filter.fromJson(json['filter']) : null;
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['count'] = this.count; data['count'] = count;
if (this.filter != null) { if (filter != null) {
data['filter'] = this.filter!.toJson(); data['filter'] = filter!.toJson();
} }
return data; return data;
} }
...@@ -165,12 +163,12 @@ class Filter { ...@@ -165,12 +163,12 @@ class Filter {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['page_name'] = this.pageName; data['page_name'] = pageName;
data['mode'] = this.mode; data['mode'] = mode;
data['open_status'] = this.openStatus; data['open_status'] = openStatus;
data['status'] = this.status; data['status'] = status;
return data; return data;
} }
} }
...@@ -202,8 +200,8 @@ class NearbyLeads { ...@@ -202,8 +200,8 @@ class NearbyLeads {
String? email; String? email;
String? distance; String? distance;
NearbyLeads( NearbyLeads({
{this.id, this.id,
this.ownerId, this.ownerId,
this.accId, this.accId,
this.accManagerId, this.accManagerId,
...@@ -227,7 +225,8 @@ class NearbyLeads { ...@@ -227,7 +225,8 @@ class NearbyLeads {
this.mob2, this.mob2,
this.tel, this.tel,
this.email, this.email,
this.distance}); this.distance,
});
NearbyLeads.fromJson(Map<String, dynamic> json) { NearbyLeads.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];
...@@ -258,32 +257,32 @@ class NearbyLeads { ...@@ -258,32 +257,32 @@ class NearbyLeads {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['owner_id'] = this.ownerId; data['owner_id'] = ownerId;
data['acc_id'] = this.accId; data['acc_id'] = accId;
data['acc_manager_id'] = this.accManagerId; data['acc_manager_id'] = accManagerId;
data['status'] = this.status; data['status'] = status;
data['open_status'] = this.openStatus; data['open_status'] = openStatus;
data['date'] = this.date; data['date'] = date;
data['close_date'] = this.closeDate; data['close_date'] = closeDate;
data['closereason'] = this.closereason; data['closereason'] = closereason;
data['competitor'] = this.competitor; data['competitor'] = competitor;
data['order_gain_id'] = this.orderGainId; data['order_gain_id'] = orderGainId;
data['loc'] = this.loc; data['loc'] = loc;
data['is_exists'] = this.isExists; data['is_exists'] = isExists;
data['created_datetime'] = this.createdDatetime; data['created_datetime'] = createdDatetime;
data['updated_datetime'] = this.updatedDatetime; data['updated_datetime'] = updatedDatetime;
data['followup_function'] = this.followupFunction; data['followup_function'] = followupFunction;
data['name'] = this.name; data['name'] = name;
data['product'] = this.product; data['product'] = product;
data['cont_name'] = this.contName; data['cont_name'] = contName;
data['address'] = this.address; data['address'] = address;
data['mob1'] = this.mob1; data['mob1'] = mob1;
data['mob2'] = this.mob2; data['mob2'] = mob2;
data['tel'] = this.tel; data['tel'] = tel;
data['email'] = this.email; data['email'] = email;
data['distance'] = this.distance; data['distance'] = distance;
return data; return data;
} }
} }
...@@ -4,8 +4,12 @@ class crmDownloadGenQuoteResponse { ...@@ -4,8 +4,12 @@ class crmDownloadGenQuoteResponse {
String? message; String? message;
int? sessionExists; int? sessionExists;
crmDownloadGenQuoteResponse( crmDownloadGenQuoteResponse({
{this.error, this.quoteFilepath, this.message, this.sessionExists}); this.error,
this.quoteFilepath,
this.message,
this.sessionExists,
});
crmDownloadGenQuoteResponse.fromJson(Map<String, dynamic> json) { crmDownloadGenQuoteResponse.fromJson(Map<String, dynamic> json) {
error = json['error']; error = json['error'];
...@@ -15,11 +19,11 @@ class crmDownloadGenQuoteResponse { ...@@ -15,11 +19,11 @@ class crmDownloadGenQuoteResponse {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['error'] = this.error; data['error'] = error;
data['quote_filepath'] = this.quoteFilepath; data['quote_filepath'] = quoteFilepath;
data['message'] = this.message; data['message'] = message;
data['session_exists'] = this.sessionExists; data['session_exists'] = sessionExists;
return data; return data;
} }
} }
...@@ -4,33 +4,38 @@ class crmLeadDetailsEditAccountViewResponse { ...@@ -4,33 +4,38 @@ class crmLeadDetailsEditAccountViewResponse {
String? error; String? error;
String? message; String? message;
crmLeadDetailsEditAccountViewResponse( crmLeadDetailsEditAccountViewResponse({
{this.teams, this.accountDetails, this.error, this.message}); this.teams,
this.accountDetails,
this.error,
this.message,
});
crmLeadDetailsEditAccountViewResponse.fromJson(Map<String, dynamic> json) { crmLeadDetailsEditAccountViewResponse.fromJson(Map<String, dynamic> json) {
if (json['teams'] != null) { if (json['teams'] != null) {
teams = <Teams>[]; teams = <Teams>[];
json['teams'].forEach((v) { json['teams'].forEach((v) {
teams!.add(new Teams.fromJson(v)); teams!.add(Teams.fromJson(v));
}); });
} }
accountDetails = json['account_details'] != null accountDetails =
? new AccountDetails.fromJson(json['account_details']) json['account_details'] != null
? AccountDetails.fromJson(json['account_details'])
: null; : null;
error = json['error']; error = json['error'];
message = json['message']; message = json['message'];
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
if (this.teams != null) { if (teams != null) {
data['teams'] = this.teams!.map((v) => v.toJson()).toList(); data['teams'] = teams!.map((v) => v.toJson()).toList();
} }
if (this.accountDetails != null) { if (accountDetails != null) {
data['account_details'] = this.accountDetails!.toJson(); data['account_details'] = accountDetails!.toJson();
} }
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -47,9 +52,9 @@ class Teams { ...@@ -47,9 +52,9 @@ class Teams {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = this.id; data['id'] = id;
data['name'] = this.name; data['name'] = name;
return data; return data;
} }
} }
...@@ -68,10 +73,10 @@ class AccountDetails { ...@@ -68,10 +73,10 @@ class AccountDetails {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['team'] = this.team; data['team'] = team;
data['segment'] = this.segment; data['segment'] = segment;
data['name'] = this.name; data['name'] = name;
return data; return data;
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment