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