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

17-09

parent 185e0896
......@@ -16,8 +16,8 @@ class crmDashboardResponse {
String? message;
int? sessionExists;
crmDashboardResponse(
{this.hotleads,
crmDashboardResponse({
this.hotleads,
this.pendingTasks,
this.coldleads,
this.warmleads,
......@@ -32,44 +32,43 @@ class crmDashboardResponse {
this.nearbyLeads,
this.error,
this.message,
this.sessionExists});
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'])
hotleads =
json['hotleads'] != null ? Hotleads.fromJson(json['hotleads']) : null;
pendingTasks =
json['pending_tasks'] != null
? Hotleads.fromJson(json['pending_tasks'])
: null;
totalleads = json['totalleads'] != null
? new Hotleads.fromJson(json['totalleads'])
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
? new Hotleads.fromJson(json['openleads'])
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;
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'])
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,8 +200,8 @@ class NearbyLeads {
String? email;
String? distance;
NearbyLeads(
{this.id,
NearbyLeads({
this.id,
this.ownerId,
this.accId,
this.accManagerId,
......@@ -227,7 +225,8 @@ class NearbyLeads {
this.mob2,
this.tel,
this.email,
this.distance});
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;
}
}
......@@ -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;
}
}
......@@ -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'])
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;
}
}
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