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

17-09

parent 185e0896
......@@ -5,24 +5,27 @@ class commonAccountdetailsResponse {
String? error;
String? message;
commonAccountdetailsResponse(
{this.accountDetails,
this.balanceDetails,
this.ledgerList,
this.error,
this.message});
commonAccountdetailsResponse({
this.accountDetails,
this.balanceDetails,
this.ledgerList,
this.error,
this.message,
});
commonAccountdetailsResponse.fromJson(Map<String, dynamic> json) {
accountDetails = json['account_details'] != null
? new AccountDetails.fromJson(json['account_details'])
: null;
balanceDetails = json['balance_details'] != null
? new BalanceDetails.fromJson(json['balance_details'])
: null;
accountDetails =
json['account_details'] != null
? AccountDetails.fromJson(json['account_details'])
: null;
balanceDetails =
json['balance_details'] != null
? BalanceDetails.fromJson(json['balance_details'])
: null;
if (json['ledger_list'] != null) {
ledgerList = <LedgerList>[];
json['ledger_list'].forEach((v) {
ledgerList!.add(new LedgerList.fromJson(v));
ledgerList!.add(LedgerList.fromJson(v));
});
}
error = json['error'];
......@@ -30,18 +33,18 @@ class commonAccountdetailsResponse {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.accountDetails != null) {
data['account_details'] = this.accountDetails!.toJson();
final Map<String, dynamic> data = <String, dynamic>{};
if (accountDetails != null) {
data['account_details'] = accountDetails!.toJson();
}
if (this.balanceDetails != null) {
data['balance_details'] = this.balanceDetails!.toJson();
if (balanceDetails != null) {
data['balance_details'] = balanceDetails!.toJson();
}
if (this.ledgerList != null) {
data['ledger_list'] = this.ledgerList!.map((v) => v.toJson()).toList();
if (ledgerList != null) {
data['ledger_list'] = ledgerList!.map((v) => v.toJson()).toList();
}
data['error'] = this.error;
data['message'] = this.message;
data['error'] = error;
data['message'] = message;
return data;
}
}
......@@ -63,22 +66,23 @@ class AccountDetails {
String? district;
String? subLocality;
AccountDetails(
{this.id,
this.type,
this.refId,
this.name,
this.address,
this.createdDatetime,
this.bankName,
this.bankBranchName,
this.bankIfscCode,
this.bankAccountHolderName,
this.bankAccountNumber,
this.bankUpiId,
this.state,
this.district,
this.subLocality});
AccountDetails({
this.id,
this.type,
this.refId,
this.name,
this.address,
this.createdDatetime,
this.bankName,
this.bankBranchName,
this.bankIfscCode,
this.bankAccountHolderName,
this.bankAccountNumber,
this.bankUpiId,
this.state,
this.district,
this.subLocality,
});
AccountDetails.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -99,22 +103,22 @@ class AccountDetails {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['type'] = this.type;
data['ref_id'] = this.refId;
data['name'] = this.name;
data['address'] = this.address;
data['created_datetime'] = this.createdDatetime;
data['bank_name'] = this.bankName;
data['bank_branch_name'] = this.bankBranchName;
data['bank_ifsc_code'] = this.bankIfscCode;
data['bank_account_holder_name'] = this.bankAccountHolderName;
data['bank_account_number'] = this.bankAccountNumber;
data['bank_upi_id'] = this.bankUpiId;
data['state'] = this.state;
data['district'] = this.district;
data['sub_locality'] = this.subLocality;
final Map<String, dynamic> data = Map<String, dynamic>();
data['id'] = id;
data['type'] = type;
data['ref_id'] = refId;
data['name'] = name;
data['address'] = address;
data['created_datetime'] = createdDatetime;
data['bank_name'] = bankName;
data['bank_branch_name'] = bankBranchName;
data['bank_ifsc_code'] = bankIfscCode;
data['bank_account_holder_name'] = bankAccountHolderName;
data['bank_account_number'] = bankAccountNumber;
data['bank_upi_id'] = bankUpiId;
data['state'] = state;
data['district'] = district;
data['sub_locality'] = subLocality;
return data;
}
}
......@@ -133,10 +137,10 @@ class BalanceDetails {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['total_debit'] = this.totalDebit;
data['total_credit'] = this.totalCredit;
data['balance'] = this.balance;
final Map<String, dynamic> data = Map<String, dynamic>();
data['total_debit'] = totalDebit;
data['total_credit'] = totalCredit;
data['balance'] = balance;
return data;
}
}
......@@ -153,17 +157,18 @@ class LedgerList {
String? date;
String? createdDatetime;
LedgerList(
{this.id,
this.accountId,
this.refType,
this.refId,
this.type,
this.description,
this.creditAmount,
this.debitAmount,
this.date,
this.createdDatetime});
LedgerList({
this.id,
this.accountId,
this.refType,
this.refId,
this.type,
this.description,
this.creditAmount,
this.debitAmount,
this.date,
this.createdDatetime,
});
LedgerList.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -179,17 +184,17 @@ class LedgerList {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['account_id'] = this.accountId;
data['ref_type'] = this.refType;
data['ref_id'] = this.refId;
data['type'] = this.type;
data['description'] = this.description;
data['credit_amount'] = this.creditAmount;
data['debit_amount'] = this.debitAmount;
data['date'] = this.date;
data['created_datetime'] = this.createdDatetime;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['account_id'] = accountId;
data['ref_type'] = refType;
data['ref_id'] = refId;
data['type'] = type;
data['description'] = description;
data['credit_amount'] = creditAmount;
data['debit_amount'] = debitAmount;
data['date'] = date;
data['created_datetime'] = createdDatetime;
return data;
}
}
......@@ -9,7 +9,7 @@ class commonAccountlistResponse {
if (json['account_list'] != null) {
accountList = <AccountList>[];
json['account_list'].forEach((v) {
accountList!.add(new AccountList.fromJson(v));
accountList!.add(AccountList.fromJson(v));
});
}
error = json['error'];
......@@ -17,12 +17,12 @@ class commonAccountlistResponse {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.accountList != null) {
data['account_list'] = this.accountList!.map((v) => v.toJson()).toList();
final Map<String, dynamic> data = <String, dynamic>{};
if (accountList != null) {
data['account_list'] = accountList!.map((v) => v.toJson()).toList();
}
data['error'] = this.error;
data['message'] = this.message;
data['error'] = error;
data['message'] = message;
return data;
}
}
......@@ -53,31 +53,32 @@ class AccountList {
String? email;
String? contactName;
AccountList(
{this.id,
this.isPaymentAccount,
this.createdEmployeeId,
this.type,
this.refId,
this.name,
this.subLocality,
this.district,
this.state,
this.address,
this.datetime,
this.empId,
this.bankName,
this.bankBranchName,
this.bankIfscCode,
this.bankAccountHolderName,
this.bankAccountNumber,
this.bankUpiId,
this.isExists,
this.createdDatetime,
this.updatedDatetime,
this.mob1,
this.email,
this.contactName});
AccountList({
this.id,
this.isPaymentAccount,
this.createdEmployeeId,
this.type,
this.refId,
this.name,
this.subLocality,
this.district,
this.state,
this.address,
this.datetime,
this.empId,
this.bankName,
this.bankBranchName,
this.bankIfscCode,
this.bankAccountHolderName,
this.bankAccountNumber,
this.bankUpiId,
this.isExists,
this.createdDatetime,
this.updatedDatetime,
this.mob1,
this.email,
this.contactName,
});
AccountList.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -107,31 +108,31 @@ class AccountList {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['is_payment_account'] = this.isPaymentAccount;
data['created_employee_id'] = this.createdEmployeeId;
data['type'] = this.type;
data['ref_id'] = this.refId;
data['name'] = this.name;
data['sub_locality'] = this.subLocality;
data['district'] = this.district;
data['state'] = this.state;
data['address'] = this.address;
data['datetime'] = this.datetime;
data['emp_id'] = this.empId;
data['bank_name'] = this.bankName;
data['bank_branch_name'] = this.bankBranchName;
data['bank_ifsc_code'] = this.bankIfscCode;
data['bank_account_holder_name'] = this.bankAccountHolderName;
data['bank_account_number'] = this.bankAccountNumber;
data['bank_upi_id'] = this.bankUpiId;
data['is_exists'] = this.isExists;
data['created_datetime'] = this.createdDatetime;
data['updated_datetime'] = this.updatedDatetime;
data['mob1'] = this.mob1;
data['email'] = this.email;
data['contact_name'] = this.contactName;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['is_payment_account'] = isPaymentAccount;
data['created_employee_id'] = createdEmployeeId;
data['type'] = type;
data['ref_id'] = refId;
data['name'] = name;
data['sub_locality'] = subLocality;
data['district'] = district;
data['state'] = state;
data['address'] = address;
data['datetime'] = datetime;
data['emp_id'] = empId;
data['bank_name'] = bankName;
data['bank_branch_name'] = bankBranchName;
data['bank_ifsc_code'] = bankIfscCode;
data['bank_account_holder_name'] = bankAccountHolderName;
data['bank_account_number'] = bankAccountNumber;
data['bank_upi_id'] = bankUpiId;
data['is_exists'] = isExists;
data['created_datetime'] = createdDatetime;
data['updated_datetime'] = updatedDatetime;
data['mob1'] = mob1;
data['email'] = email;
data['contact_name'] = contactName;
return data;
}
}
......@@ -3,25 +3,19 @@ class commonAddAccountsSubmitResponse {
String? message;
String? id;
commonAddAccountsSubmitResponse({
this.error,
this.message,
this.id,
});
commonAddAccountsSubmitResponse({this.error, this.message, this.id});
commonAddAccountsSubmitResponse.fromJson(Map<String, dynamic> json) {
error = json['error'];
message = json['message'];
id = json['id'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['error'] = this.error;
data['message'] = this.message;
data['id'] = this.id;
final Map<String, dynamic> data = <String, dynamic>{};
data['error'] = error;
data['message'] = message;
data['id'] = id;
return data;
}
}
......@@ -16,12 +16,11 @@ class commonAddAccountsViewResponse {
if (json['states'] != null) {
states = <States>[];
json['states'].forEach((v) {
states!.add(new States.fromJson(v));
states!.add(States.fromJson(v));
});
}
if(json['account_types']!=null){
if (json['account_types'] != null) {
accountTypes = json['account_types'].cast<String>();
}
......@@ -30,17 +29,16 @@ class commonAddAccountsViewResponse {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.states != null) {
data['states'] = this.states!.map((v) => v.toJson()).toList();
final Map<String, dynamic> data = <String, dynamic>{};
if (states != null) {
data['states'] = states!.map((v) => v.toJson()).toList();
}
if(this.accountTypes!=null){
data['account_types'] = this.accountTypes;
if (accountTypes != null) {
data['account_types'] = accountTypes;
}
data['error'] = this.error;
data['message'] = this.message;
data['error'] = error;
data['message'] = message;
return data;
}
}
......@@ -57,9 +55,9 @@ class States {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['name'] = this.name;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['name'] = name;
return data;
}
}
......@@ -10,20 +10,20 @@ class AccessiblePagesResponse {
if (json['pages_accessible'] != null) {
pagesAccessible = <PagesAccessible>[];
json['pages_accessible'].forEach((v) {
pagesAccessible!.add(new PagesAccessible.fromJson(v));
pagesAccessible!.add(PagesAccessible.fromJson(v));
});
}
message = json['message'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['error'] = this.error;
if (this.pagesAccessible != null) {
final Map<String, dynamic> data = <String, dynamic>{};
data['error'] = error;
if (pagesAccessible != null) {
data['pages_accessible'] =
this.pagesAccessible!.map((v) => v.toJson()).toList();
pagesAccessible!.map((v) => v.toJson()).toList();
}
data['message'] = this.message;
data['message'] = message;
return data;
}
}
......@@ -42,10 +42,10 @@ class PagesAccessible {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['page_name'] = this.pageName;
data['mode'] = this.mode;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['page_name'] = pageName;
data['mode'] = mode;
return data;
}
}
......@@ -10,19 +10,19 @@ class GetDistrictOnStateResponse {
if (json['districts'] != null) {
districts = <Districts>[];
json['districts'].forEach((v) {
districts!.add(new Districts.fromJson(v));
districts!.add(Districts.fromJson(v));
});
}
message = json['message'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['error'] = this.error;
if (this.districts != null) {
data['districts'] = this.districts!.map((v) => v.toJson()).toList();
final Map<String, dynamic> data = <String, dynamic>{};
data['error'] = error;
if (districts != null) {
data['districts'] = districts!.map((v) => v.toJson()).toList();
}
data['message'] = this.message;
data['message'] = message;
return data;
}
}
......@@ -36,14 +36,15 @@ class Districts {
String? createdDatetime;
String? updatedDatetime;
Districts(
{this.id,
this.state,
this.district,
this.date,
this.isExists,
this.createdDatetime,
this.updatedDatetime});
Districts({
this.id,
this.state,
this.district,
this.date,
this.isExists,
this.createdDatetime,
this.updatedDatetime,
});
Districts.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -56,14 +57,14 @@ class Districts {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['state'] = this.state;
data['district'] = this.district;
data['date'] = this.date;
data['is_exists'] = this.isExists;
data['created_datetime'] = this.createdDatetime;
data['updated_datetime'] = this.updatedDatetime;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['state'] = state;
data['district'] = district;
data['date'] = date;
data['is_exists'] = isExists;
data['created_datetime'] = createdDatetime;
data['updated_datetime'] = updatedDatetime;
return data;
}
}
......@@ -10,19 +10,19 @@ class GetSegmentOnTeamResponse {
if (json['segments'] != null) {
segments = <Segments>[];
json['segments'].forEach((v) {
segments!.add(new Segments.fromJson(v));
segments!.add(Segments.fromJson(v));
});
}
message = json['message'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['error'] = this.error;
if (this.segments != null) {
data['segments'] = this.segments!.map((v) => v.toJson()).toList();
final Map<String, dynamic> data = <String, dynamic>{};
data['error'] = error;
if (segments != null) {
data['segments'] = segments!.map((v) => v.toJson()).toList();
}
data['message'] = this.message;
data['message'] = message;
return data;
}
}
......@@ -36,14 +36,15 @@ class Segments {
String? createdDatetime;
String? updatedDatetime;
Segments(
{this.id,
this.teamId,
this.name,
this.date,
this.isExists,
this.createdDatetime,
this.updatedDatetime});
Segments({
this.id,
this.teamId,
this.name,
this.date,
this.isExists,
this.createdDatetime,
this.updatedDatetime,
});
Segments.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -56,14 +57,14 @@ class Segments {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['team_id'] = this.teamId;
data['name'] = this.name;
data['date'] = this.date;
data['is_exists'] = this.isExists;
data['created_datetime'] = this.createdDatetime;
data['updated_datetime'] = this.updatedDatetime;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['team_id'] = teamId;
data['name'] = name;
data['date'] = date;
data['is_exists'] = isExists;
data['created_datetime'] = createdDatetime;
data['updated_datetime'] = updatedDatetime;
return data;
}
}
......@@ -10,19 +10,19 @@ class GetSourceOnReferenceResponse {
if (json['references'] != null) {
references = <References>[];
json['references'].forEach((v) {
references!.add(new References.fromJson(v));
references!.add(References.fromJson(v));
});
}
message = json['message'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['error'] = this.error;
if (this.references != null) {
data['references'] = this.references!.map((v) => v.toJson()).toList();
final Map<String, dynamic> data = <String, dynamic>{};
data['error'] = error;
if (references != null) {
data['references'] = references!.map((v) => v.toJson()).toList();
}
data['message'] = this.message;
data['message'] = message;
return data;
}
}
......@@ -36,14 +36,15 @@ class References {
String? createdDatetime;
String? updatedDatetime;
References(
{this.id,
this.sourceId,
this.name,
this.date,
this.isExists,
this.createdDatetime,
this.updatedDatetime});
References({
this.id,
this.sourceId,
this.name,
this.date,
this.isExists,
this.createdDatetime,
this.updatedDatetime,
});
References.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -56,14 +57,14 @@ class References {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['source_id'] = this.sourceId;
data['name'] = this.name;
data['date'] = this.date;
data['is_exists'] = this.isExists;
data['created_datetime'] = this.createdDatetime;
data['updated_datetime'] = this.updatedDatetime;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['source_id'] = sourceId;
data['name'] = name;
data['date'] = date;
data['is_exists'] = isExists;
data['created_datetime'] = createdDatetime;
data['updated_datetime'] = updatedDatetime;
return data;
}
}
......@@ -10,20 +10,19 @@ class GetSubLocOnDistrictResponse {
if (json['sub_locations'] != null) {
subLocations = <SubLocations>[];
json['sub_locations'].forEach((v) {
subLocations!.add(new SubLocations.fromJson(v));
subLocations!.add(SubLocations.fromJson(v));
});
}
message = json['message'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['error'] = this.error;
if (this.subLocations != null) {
data['sub_locations'] =
this.subLocations!.map((v) => v.toJson()).toList();
final Map<String, dynamic> data = <String, dynamic>{};
data['error'] = error;
if (subLocations != null) {
data['sub_locations'] = subLocations!.map((v) => v.toJson()).toList();
}
data['message'] = this.message;
data['message'] = message;
return data;
}
}
......@@ -37,14 +36,15 @@ class SubLocations {
String? createdDatetime;
String? updatedDatetime;
SubLocations(
{this.id,
this.districtId,
this.subLocality,
this.date,
this.isExists,
this.createdDatetime,
this.updatedDatetime});
SubLocations({
this.id,
this.districtId,
this.subLocality,
this.date,
this.isExists,
this.createdDatetime,
this.updatedDatetime,
});
SubLocations.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -57,14 +57,14 @@ class SubLocations {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['district_id'] = this.districtId;
data['sub_locality'] = this.subLocality;
data['date'] = this.date;
data['is_exists'] = this.isExists;
data['created_datetime'] = this.createdDatetime;
data['updated_datetime'] = this.updatedDatetime;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['district_id'] = districtId;
data['sub_locality'] = subLocality;
data['date'] = date;
data['is_exists'] = isExists;
data['created_datetime'] = createdDatetime;
data['updated_datetime'] = updatedDatetime;
return data;
}
}
......@@ -11,57 +11,59 @@ class LeadDetailsResponse {
String? message;
String? showEditAccountButton;
LeadDetailsResponse(
{this.error,
this.sessionExists,
this.leadDetails,
this.accountDetails,
this.leadProducts,
this.contactDetails,
this.followupDetails,
this.appointmentDetails,
this.quotationsDetails,
this.message,
this.showEditAccountButton,
});
LeadDetailsResponse({
this.error,
this.sessionExists,
this.leadDetails,
this.accountDetails,
this.leadProducts,
this.contactDetails,
this.followupDetails,
this.appointmentDetails,
this.quotationsDetails,
this.message,
this.showEditAccountButton,
});
LeadDetailsResponse.fromJson(Map<String, dynamic> json) {
error = json['error'];
sessionExists = json['session_exists'];
leadDetails = json['lead_details'] != null
? new LeadDetails.fromJson(json['lead_details'])
: null;
accountDetails = json['account_details'] != null
? new AccountDetails.fromJson(json['account_details'])
: null;
leadDetails =
json['lead_details'] != null
? LeadDetails.fromJson(json['lead_details'])
: null;
accountDetails =
json['account_details'] != null
? AccountDetails.fromJson(json['account_details'])
: null;
if (json['lead_products'] != null) {
leadProducts = <LeadProducts>[];
json['lead_products'].forEach((v) {
leadProducts!.add(new LeadProducts.fromJson(v));
leadProducts!.add(LeadProducts.fromJson(v));
});
}
if (json['contact_details'] != null) {
contactDetails = <ContactDetails>[];
json['contact_details'].forEach((v) {
contactDetails!.add(new ContactDetails.fromJson(v));
contactDetails!.add(ContactDetails.fromJson(v));
});
}
if (json['followup_details'] != null) {
followupDetails = <FollowupDetails>[];
json['followup_details'].forEach((v) {
followupDetails!.add(new FollowupDetails.fromJson(v));
followupDetails!.add(FollowupDetails.fromJson(v));
});
}
if (json['appointment_details'] != null) {
appointmentDetails = <AppointmentDetails>[];
json['appointment_details'].forEach((v) {
appointmentDetails!.add(new AppointmentDetails.fromJson(v));
appointmentDetails!.add(AppointmentDetails.fromJson(v));
});
}
if (json['quotations_details'] != null) {
quotationsDetails = <QuotationsDetails>[];
json['quotations_details'].forEach((v) {
quotationsDetails!.add(new QuotationsDetails.fromJson(v));
quotationsDetails!.add(QuotationsDetails.fromJson(v));
});
}
message = json['message'];
......@@ -69,37 +71,35 @@ class LeadDetailsResponse {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['error'] = this.error;
data['session_exists'] = this.sessionExists;
if (this.leadDetails != null) {
data['lead_details'] = this.leadDetails!.toJson();
final Map<String, dynamic> data = <String, dynamic>{};
data['error'] = error;
data['session_exists'] = sessionExists;
if (leadDetails != null) {
data['lead_details'] = leadDetails!.toJson();
}
if (this.accountDetails != null) {
data['account_details'] = this.accountDetails!.toJson();
if (accountDetails != null) {
data['account_details'] = accountDetails!.toJson();
}
if (this.leadProducts != null) {
data['lead_products'] =
this.leadProducts!.map((v) => v.toJson()).toList();
if (leadProducts != null) {
data['lead_products'] = leadProducts!.map((v) => v.toJson()).toList();
}
if (this.contactDetails != null) {
data['contact_details'] =
this.contactDetails!.map((v) => v.toJson()).toList();
if (contactDetails != null) {
data['contact_details'] = contactDetails!.map((v) => v.toJson()).toList();
}
if (this.followupDetails != null) {
if (followupDetails != null) {
data['followup_details'] =
this.followupDetails!.map((v) => v.toJson()).toList();
followupDetails!.map((v) => v.toJson()).toList();
}
if (this.appointmentDetails != null) {
if (appointmentDetails != null) {
data['appointment_details'] =
this.appointmentDetails!.map((v) => v.toJson()).toList();
appointmentDetails!.map((v) => v.toJson()).toList();
}
if (this.quotationsDetails != null) {
if (quotationsDetails != null) {
data['quotations_details'] =
this.quotationsDetails!.map((v) => v.toJson()).toList();
quotationsDetails!.map((v) => v.toJson()).toList();
}
data['message'] = this.message;
data['show_edit_account_button'] = this.showEditAccountButton;
data['message'] = message;
data['show_edit_account_button'] = showEditAccountButton;
return data;
}
}
......@@ -131,32 +131,33 @@ class LeadDetails {
String? lage;
String? copyMessage;
LeadDetails(
{this.id,
this.ownerId,
this.accId,
this.accManagerId,
this.status,
this.openStatus,
this.date,
this.closeDate,
this.closereason,
this.competitor,
this.orderGainId,
this.isExists,
this.createdDatetime,
this.updatedDatetime,
this.followupFunction,
this.name,
this.contName,
this.address,
this.mob1,
this.mob2,
this.tel,
this.email,
this.prod,
this.lage,
this.copyMessage});
LeadDetails({
this.id,
this.ownerId,
this.accId,
this.accManagerId,
this.status,
this.openStatus,
this.date,
this.closeDate,
this.closereason,
this.competitor,
this.orderGainId,
this.isExists,
this.createdDatetime,
this.updatedDatetime,
this.followupFunction,
this.name,
this.contName,
this.address,
this.mob1,
this.mob2,
this.tel,
this.email,
this.prod,
this.lage,
this.copyMessage,
});
LeadDetails.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -187,32 +188,32 @@ class LeadDetails {
}
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['is_exists'] = this.isExists;
data['created_datetime'] = this.createdDatetime;
data['updated_datetime'] = this.updatedDatetime;
data['followup_function'] = this.followupFunction;
data['name'] = this.name;
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['prod'] = this.prod;
data['lage'] = this.lage;
data['copy_message'] = this.copyMessage;
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['is_exists'] = isExists;
data['created_datetime'] = createdDatetime;
data['updated_datetime'] = updatedDatetime;
data['followup_function'] = followupFunction;
data['name'] = name;
data['cont_name'] = contName;
data['address'] = address;
data['mob1'] = mob1;
data['mob2'] = mob2;
data['tel'] = tel;
data['email'] = email;
data['prod'] = prod;
data['lage'] = lage;
data['copy_message'] = copyMessage;
return data;
}
}
......@@ -243,31 +244,32 @@ class AccountDetails {
String? accManager;
String? owner;
AccountDetails(
{this.id,
this.tempId,
this.ownerId,
this.accManagerId,
this.name,
this.salutationName,
this.subLocality,
this.district,
this.state,
this.pincode,
this.address,
this.date,
this.source,
this.reference,
this.segment,
this.team,
this.gstNumber,
this.isExists,
this.createdDatetime,
this.updatedDatetime,
this.email,
this.mob1,
this.accManager,
this.owner});
AccountDetails({
this.id,
this.tempId,
this.ownerId,
this.accManagerId,
this.name,
this.salutationName,
this.subLocality,
this.district,
this.state,
this.pincode,
this.address,
this.date,
this.source,
this.reference,
this.segment,
this.team,
this.gstNumber,
this.isExists,
this.createdDatetime,
this.updatedDatetime,
this.email,
this.mob1,
this.accManager,
this.owner,
});
AccountDetails.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -297,31 +299,31 @@ class AccountDetails {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['temp_id'] = this.tempId;
data['owner_id'] = this.ownerId;
data['acc_manager_id'] = this.accManagerId;
data['name'] = this.name;
data['salutation_name'] = this.salutationName;
data['sub_locality'] = this.subLocality;
data['district'] = this.district;
data['state'] = this.state;
data['pincode'] = this.pincode;
data['address'] = this.address;
data['date'] = this.date;
data['source'] = this.source;
data['reference'] = this.reference;
data['segment'] = this.segment;
data['team'] = this.team;
data['gst_number'] = this.gstNumber;
data['is_exists'] = this.isExists;
data['created_datetime'] = this.createdDatetime;
data['updated_datetime'] = this.updatedDatetime;
data['email'] = this.email;
data['mob1'] = this.mob1;
data['acc_manager'] = this.accManager;
data['owner'] = this.owner;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['temp_id'] = tempId;
data['owner_id'] = ownerId;
data['acc_manager_id'] = accManagerId;
data['name'] = name;
data['salutation_name'] = salutationName;
data['sub_locality'] = subLocality;
data['district'] = district;
data['state'] = state;
data['pincode'] = pincode;
data['address'] = address;
data['date'] = date;
data['source'] = source;
data['reference'] = reference;
data['segment'] = segment;
data['team'] = team;
data['gst_number'] = gstNumber;
data['is_exists'] = isExists;
data['created_datetime'] = createdDatetime;
data['updated_datetime'] = updatedDatetime;
data['email'] = email;
data['mob1'] = mob1;
data['acc_manager'] = accManager;
data['owner'] = owner;
return data;
}
}
......@@ -340,19 +342,20 @@ class LeadProducts {
String? updatedDatetime;
String? productName;
LeadProducts(
{this.id,
this.leadId,
this.productId,
this.qty,
this.price,
this.prodTotalPrice,
this.date,
this.isDel,
this.isExists,
this.createdDatetime,
this.updatedDatetime,
this.productName});
LeadProducts({
this.id,
this.leadId,
this.productId,
this.qty,
this.price,
this.prodTotalPrice,
this.date,
this.isDel,
this.isExists,
this.createdDatetime,
this.updatedDatetime,
this.productName,
});
LeadProducts.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -370,19 +373,19 @@ class LeadProducts {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['lead_id'] = this.leadId;
data['product_id'] = this.productId;
data['qty'] = this.qty;
data['price'] = this.price;
data['prod_total_price'] = this.prodTotalPrice;
data['date'] = this.date;
data['is_del'] = this.isDel;
data['is_exists'] = this.isExists;
data['created_datetime'] = this.createdDatetime;
data['updated_datetime'] = this.updatedDatetime;
data['product_name'] = this.productName;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['lead_id'] = leadId;
data['product_id'] = productId;
data['qty'] = qty;
data['price'] = price;
data['prod_total_price'] = prodTotalPrice;
data['date'] = date;
data['is_del'] = isDel;
data['is_exists'] = isExists;
data['created_datetime'] = createdDatetime;
data['updated_datetime'] = updatedDatetime;
data['product_name'] = productName;
return data;
}
}
......@@ -403,21 +406,22 @@ class ContactDetails {
String? createdDatetime;
String? updatedDatetime;
ContactDetails(
{this.id,
this.accId,
this.name,
this.salutationName,
this.mob1,
this.mob2,
this.tel,
this.email,
this.type,
this.designation,
this.date,
this.isExists,
this.createdDatetime,
this.updatedDatetime});
ContactDetails({
this.id,
this.accId,
this.name,
this.salutationName,
this.mob1,
this.mob2,
this.tel,
this.email,
this.type,
this.designation,
this.date,
this.isExists,
this.createdDatetime,
this.updatedDatetime,
});
ContactDetails.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -437,21 +441,21 @@ class ContactDetails {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['acc_id'] = this.accId;
data['name'] = this.name;
data['salutation_name'] = this.salutationName;
data['mob1'] = this.mob1;
data['mob2'] = this.mob2;
data['tel'] = this.tel;
data['email'] = this.email;
data['type'] = this.type;
data['designation'] = this.designation;
data['date'] = this.date;
data['is_exists'] = this.isExists;
data['created_datetime'] = this.createdDatetime;
data['updated_datetime'] = this.updatedDatetime;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['acc_id'] = accId;
data['name'] = name;
data['salutation_name'] = salutationName;
data['mob1'] = mob1;
data['mob2'] = mob2;
data['tel'] = tel;
data['email'] = email;
data['type'] = type;
data['designation'] = designation;
data['date'] = date;
data['is_exists'] = isExists;
data['created_datetime'] = createdDatetime;
data['updated_datetime'] = updatedDatetime;
return data;
}
}
......@@ -465,14 +469,15 @@ class FollowupDetails {
String? fstatus;
String? ffeedback;
FollowupDetails(
{this.ename,
this.ftype,
this.fdate,
this.finTime,
this.foutTime,
this.fstatus,
this.ffeedback});
FollowupDetails({
this.ename,
this.ftype,
this.fdate,
this.finTime,
this.foutTime,
this.fstatus,
this.ffeedback,
});
FollowupDetails.fromJson(Map<String, dynamic> json) {
ename = json['ename'];
......@@ -485,14 +490,14 @@ class FollowupDetails {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['ename'] = this.ename;
data['ftype'] = this.ftype;
data['fdate'] = this.fdate;
data['fin_time'] = this.finTime;
data['fout_time'] = this.foutTime;
data['fstatus'] = this.fstatus;
data['ffeedback'] = this.ffeedback;
final Map<String, dynamic> data = <String, dynamic>{};
data['ename'] = ename;
data['ftype'] = ftype;
data['fdate'] = fdate;
data['fin_time'] = finTime;
data['fout_time'] = foutTime;
data['fstatus'] = fstatus;
data['ffeedback'] = ffeedback;
return data;
}
}
......@@ -505,13 +510,14 @@ class AppointmentDetails {
String? astatus;
String? adate;
AppointmentDetails(
{this.ename,
this.aappDate,
this.atype,
this.anote,
this.astatus,
this.adate});
AppointmentDetails({
this.ename,
this.aappDate,
this.atype,
this.anote,
this.astatus,
this.adate,
});
AppointmentDetails.fromJson(Map<String, dynamic> json) {
ename = json['ename'];
......@@ -523,13 +529,13 @@ class AppointmentDetails {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['ename'] = this.ename;
data['aapp_date'] = this.aappDate;
data['atype'] = this.atype;
data['anote'] = this.anote;
data['astatus'] = this.astatus;
data['adate'] = this.adate;
final Map<String, dynamic> data = <String, dynamic>{};
data['ename'] = ename;
data['aapp_date'] = aappDate;
data['atype'] = atype;
data['anote'] = anote;
data['astatus'] = astatus;
data['adate'] = adate;
return data;
}
}
......@@ -564,35 +570,36 @@ class QuotationsDetails {
String? updatedDatetime;
String? employee;
QuotationsDetails(
{this.id,
this.empId,
this.leadId,
this.email,
this.mobile,
this.quote,
this.info,
this.type,
this.quoteType,
this.subject,
this.taxes,
this.spclNote,
this.forTxt,
this.payTerms,
this.priceShead,
this.extraChargeNarr,
this.extraChargeAmount,
this.transportCharge,
this.loadUnloadCharge,
this.minDuration,
this.deliveryPeriod,
this.minAdvance,
this.extraHoursCharge,
this.date,
this.isExists,
this.createdDatetime,
this.updatedDatetime,
this.employee});
QuotationsDetails({
this.id,
this.empId,
this.leadId,
this.email,
this.mobile,
this.quote,
this.info,
this.type,
this.quoteType,
this.subject,
this.taxes,
this.spclNote,
this.forTxt,
this.payTerms,
this.priceShead,
this.extraChargeNarr,
this.extraChargeAmount,
this.transportCharge,
this.loadUnloadCharge,
this.minDuration,
this.deliveryPeriod,
this.minAdvance,
this.extraHoursCharge,
this.date,
this.isExists,
this.createdDatetime,
this.updatedDatetime,
this.employee,
});
QuotationsDetails.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -626,35 +633,35 @@ class QuotationsDetails {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['emp_id'] = this.empId;
data['lead_id'] = this.leadId;
data['email'] = this.email;
data['mobile'] = this.mobile;
data['quote'] = this.quote;
data['info'] = this.info;
data['type'] = this.type;
data['quote_type'] = this.quoteType;
data['subject'] = this.subject;
data['taxes'] = this.taxes;
data['spcl_note'] = this.spclNote;
data['for_txt'] = this.forTxt;
data['pay_terms'] = this.payTerms;
data['price_shead'] = this.priceShead;
data['extra_charge_narr'] = this.extraChargeNarr;
data['extra_charge_amount'] = this.extraChargeAmount;
data['transport_charge'] = this.transportCharge;
data['load_unload_charge'] = this.loadUnloadCharge;
data['min_duration'] = this.minDuration;
data['delivery_period'] = this.deliveryPeriod;
data['min_advance'] = this.minAdvance;
data['extra_hours_charge'] = this.extraHoursCharge;
data['date'] = this.date;
data['is_exists'] = this.isExists;
data['created_datetime'] = this.createdDatetime;
data['updated_datetime'] = this.updatedDatetime;
data['employee'] = this.employee;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['emp_id'] = empId;
data['lead_id'] = leadId;
data['email'] = email;
data['mobile'] = mobile;
data['quote'] = quote;
data['info'] = info;
data['type'] = type;
data['quote_type'] = quoteType;
data['subject'] = subject;
data['taxes'] = taxes;
data['spcl_note'] = spclNote;
data['for_txt'] = forTxt;
data['pay_terms'] = payTerms;
data['price_shead'] = priceShead;
data['extra_charge_narr'] = extraChargeNarr;
data['extra_charge_amount'] = extraChargeAmount;
data['transport_charge'] = transportCharge;
data['load_unload_charge'] = loadUnloadCharge;
data['min_duration'] = minDuration;
data['delivery_period'] = deliveryPeriod;
data['min_advance'] = minAdvance;
data['extra_hours_charge'] = extraHoursCharge;
data['date'] = date;
data['is_exists'] = isExists;
data['created_datetime'] = createdDatetime;
data['updated_datetime'] = updatedDatetime;
data['employee'] = employee;
return data;
}
}
......@@ -10,19 +10,19 @@ class LeadListContactPopUpResponse {
if (json['contacts'] != null) {
contacts = <Contacts>[];
json['contacts'].forEach((v) {
contacts!.add(new Contacts.fromJson(v));
contacts!.add(Contacts.fromJson(v));
});
}
message = json['message'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['error'] = this.error;
if (this.contacts != null) {
data['contacts'] = this.contacts!.map((v) => v.toJson()).toList();
final Map<String, dynamic> data = <String, dynamic>{};
data['error'] = error;
if (contacts != null) {
data['contacts'] = contacts!.map((v) => v.toJson()).toList();
}
data['message'] = this.message;
data['message'] = message;
return data;
}
}
......@@ -43,21 +43,22 @@ class Contacts {
String? createdDatetime;
String? updatedDatetime;
Contacts(
{this.id,
this.accId,
this.name,
this.salutationName,
this.mob1,
this.mob2,
this.tel,
this.email,
this.type,
this.designation,
this.date,
this.isExists,
this.createdDatetime,
this.updatedDatetime});
Contacts({
this.id,
this.accId,
this.name,
this.salutationName,
this.mob1,
this.mob2,
this.tel,
this.email,
this.type,
this.designation,
this.date,
this.isExists,
this.createdDatetime,
this.updatedDatetime,
});
Contacts.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -77,21 +78,21 @@ class Contacts {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['acc_id'] = this.accId;
data['name'] = this.name;
data['salutation_name'] = this.salutationName;
data['mob1'] = this.mob1;
data['mob2'] = this.mob2;
data['tel'] = this.tel;
data['email'] = this.email;
data['type'] = this.type;
data['designation'] = this.designation;
data['date'] = this.date;
data['is_exists'] = this.isExists;
data['created_datetime'] = this.createdDatetime;
data['updated_datetime'] = this.updatedDatetime;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['acc_id'] = accId;
data['name'] = name;
data['salutation_name'] = salutationName;
data['mob1'] = mob1;
data['mob2'] = mob2;
data['tel'] = tel;
data['email'] = email;
data['type'] = type;
data['designation'] = designation;
data['date'] = date;
data['is_exists'] = isExists;
data['created_datetime'] = createdDatetime;
data['updated_datetime'] = updatedDatetime;
return data;
}
}
......@@ -6,37 +6,38 @@ class LeadListViewResponse {
String? error;
String? message;
LeadListViewResponse(
{this.sources,
this.teams,
this.states,
this.employees,
this.error,
this.message});
LeadListViewResponse({
this.sources,
this.teams,
this.states,
this.employees,
this.error,
this.message,
});
LeadListViewResponse.fromJson(Map<String, dynamic> json) {
if (json['sources'] != null) {
sources = <Sources>[];
json['sources'].forEach((v) {
sources!.add(new Sources.fromJson(v));
sources!.add(Sources.fromJson(v));
});
}
if (json['teams'] != null) {
teams = <Teams>[];
json['teams'].forEach((v) {
teams!.add(new Teams.fromJson(v));
teams!.add(Teams.fromJson(v));
});
}
if (json['states'] != null) {
states = <States>[];
json['states'].forEach((v) {
states!.add(new States.fromJson(v));
states!.add(States.fromJson(v));
});
}
if (json['employees'] != null) {
employees = <Employees>[];
json['employees'].forEach((v) {
employees!.add(new Employees.fromJson(v));
employees!.add(Employees.fromJson(v));
});
}
error = json['error'];
......@@ -44,21 +45,21 @@ class LeadListViewResponse {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.sources != null) {
data['sources'] = this.sources!.map((v) => v.toJson()).toList();
final Map<String, dynamic> data = <String, dynamic>{};
if (sources != null) {
data['sources'] = sources!.map((v) => v.toJson()).toList();
}
if (this.teams != null) {
data['teams'] = this.teams!.map((v) => v.toJson()).toList();
if (teams != null) {
data['teams'] = teams!.map((v) => v.toJson()).toList();
}
if (this.states != null) {
data['states'] = this.states!.map((v) => v.toJson()).toList();
if (states != null) {
data['states'] = states!.map((v) => v.toJson()).toList();
}
if (this.employees != null) {
data['employees'] = this.employees!.map((v) => v.toJson()).toList();
if (employees != null) {
data['employees'] = employees!.map((v) => v.toJson()).toList();
}
data['error'] = this.error;
data['message'] = this.message;
data['error'] = error;
data['message'] = message;
return data;
}
}
......@@ -75,12 +76,13 @@ class Sources {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['name'] = this.name;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['name'] = name;
return data;
}
}
class Teams {
String? id;
String? name;
......@@ -93,12 +95,13 @@ 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;
}
}
class States {
String? id;
String? name;
......@@ -111,12 +114,13 @@ class States {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['name'] = this.name;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['name'] = name;
return data;
}
}
class Employees {
String? id;
String? name;
......@@ -129,9 +133,9 @@ class Employees {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['name'] = this.name;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['name'] = name;
return data;
}
}
\ No newline at end of file
}
......@@ -9,7 +9,7 @@ class NearbyOpenLeadsResponse {
if (json['lead_list'] != null) {
leadList = <LeadList>[];
json['lead_list'].forEach((v) {
leadList!.add(new LeadList.fromJson(v));
leadList!.add(LeadList.fromJson(v));
});
}
error = json['error'];
......@@ -17,12 +17,12 @@ class NearbyOpenLeadsResponse {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.leadList != null) {
data['lead_list'] = this.leadList!.map((v) => v.toJson()).toList();
final Map<String, dynamic> data = <String, dynamic>{};
if (leadList != null) {
data['lead_list'] = leadList!.map((v) => v.toJson()).toList();
}
data['error'] = this.error;
data['message'] = this.message;
data['error'] = error;
data['message'] = message;
return data;
}
}
......@@ -53,31 +53,32 @@ class LeadList {
String? email;
String? distance;
LeadList(
{this.id,
this.ownerId,
this.accId,
this.accManagerId,
this.status,
this.openStatus,
this.date,
this.closeDate,
this.closereason,
this.competitor,
this.orderGainId,
this.loc,
this.isExists,
this.createdDatetime,
this.updatedDatetime,
this.followupFunction,
this.name,
this.contName,
this.address,
this.mob1,
this.mob2,
this.tel,
this.email,
this.distance});
LeadList({
this.id,
this.ownerId,
this.accId,
this.accManagerId,
this.status,
this.openStatus,
this.date,
this.closeDate,
this.closereason,
this.competitor,
this.orderGainId,
this.loc,
this.isExists,
this.createdDatetime,
this.updatedDatetime,
this.followupFunction,
this.name,
this.contName,
this.address,
this.mob1,
this.mob2,
this.tel,
this.email,
this.distance,
});
LeadList.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -107,31 +108,31 @@ class LeadList {
}
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['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['cont_name'] = contName;
data['address'] = address;
data['mob1'] = mob1;
data['mob2'] = mob2;
data['tel'] = tel;
data['email'] = email;
data['distance'] = distance;
return data;
}
}
......@@ -9,7 +9,7 @@ class ProspectListViewResponse {
if (json['employees'] != null) {
employees = <Employees>[];
json['employees'].forEach((v) {
employees!.add(new Employees.fromJson(v));
employees!.add(Employees.fromJson(v));
});
}
error = json['error'];
......@@ -17,12 +17,12 @@ class ProspectListViewResponse {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.employees != null) {
data['employees'] = this.employees!.map((v) => v.toJson()).toList();
final Map<String, dynamic> data = <String, dynamic>{};
if (employees != null) {
data['employees'] = employees!.map((v) => v.toJson()).toList();
}
data['error'] = this.error;
data['message'] = this.message;
data['error'] = error;
data['message'] = message;
return data;
}
}
......@@ -39,9 +39,9 @@ class Employees {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['name'] = this.name;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['name'] = name;
return data;
}
}
......@@ -10,19 +10,19 @@ class SubmitLeadListFilterResponse {
if (json['lead_list'] != null) {
leadList = <LeadList>[];
json['lead_list'].forEach((v) {
leadList!.add(new LeadList.fromJson(v));
leadList!.add(LeadList.fromJson(v));
});
}
message = json['message'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['error'] = this.error;
if (this.leadList != null) {
data['lead_list'] = this.leadList!.map((v) => v.toJson()).toList();
final Map<String, dynamic> data = <String, dynamic>{};
data['error'] = error;
if (leadList != null) {
data['lead_list'] = leadList!.map((v) => v.toJson()).toList();
}
data['message'] = this.message;
data['message'] = message;
return data;
}
}
......@@ -48,26 +48,27 @@ class LeadList {
Account? account;
List<Contact>? contact;
LeadList(
{this.ldate,
this.stateName,
this.district,
this.subLocality,
this.accman,
this.accId,
this.cname,
this.mob1,
this.leadid,
this.status,
this.openStatus,
this.address,
this.aid,
this.company,
this.lage,
this.product,
this.followupfun,
this.account,
this.contact});
LeadList({
this.ldate,
this.stateName,
this.district,
this.subLocality,
this.accman,
this.accId,
this.cname,
this.mob1,
this.leadid,
this.status,
this.openStatus,
this.address,
this.aid,
this.company,
this.lage,
this.product,
this.followupfun,
this.account,
this.contact,
});
LeadList.fromJson(Map<String, dynamic> json) {
ldate = json['ldate'];
......@@ -88,39 +89,39 @@ class LeadList {
product = json['product'];
followupfun = json['followupfun'];
account =
json['account'] != null ? new Account.fromJson(json['account']) : null;
json['account'] != null ? Account.fromJson(json['account']) : null;
if (json['contact'] != null) {
contact = <Contact>[];
json['contact'].forEach((v) {
contact!.add(new Contact.fromJson(v));
contact!.add(Contact.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['ldate'] = this.ldate;
data['state_name'] = this.stateName;
data['district'] = this.district;
data['sub_locality'] = this.subLocality;
data['accman'] = this.accman;
data['acc_id'] = this.accId;
data['cname'] = this.cname;
data['mob1'] = this.mob1;
data['leadid'] = this.leadid;
data['status'] = this.status;
data['open_status'] = this.openStatus;
data['address'] = this.address;
data['aid'] = this.aid;
data['company'] = this.company;
data['lage'] = this.lage;
data['product'] = this.product;
data['followupfun'] = this.followupfun;
if (this.account != null) {
data['account'] = this.account!.toJson();
final Map<String, dynamic> data = <String, dynamic>{};
data['ldate'] = ldate;
data['state_name'] = stateName;
data['district'] = district;
data['sub_locality'] = subLocality;
data['accman'] = accman;
data['acc_id'] = accId;
data['cname'] = cname;
data['mob1'] = mob1;
data['leadid'] = leadid;
data['status'] = status;
data['open_status'] = openStatus;
data['address'] = address;
data['aid'] = aid;
data['company'] = company;
data['lage'] = lage;
data['product'] = product;
data['followupfun'] = followupfun;
if (account != null) {
data['account'] = account!.toJson();
}
if (this.contact != null) {
data['contact'] = this.contact!.map((v) => v.toJson()).toList();
if (contact != null) {
data['contact'] = contact!.map((v) => v.toJson()).toList();
}
return data;
}
......@@ -148,27 +149,28 @@ class Account {
String? createdDatetime;
String? updatedDatetime;
Account(
{this.id,
this.tempId,
this.ownerId,
this.accManagerId,
this.name,
this.salutationName,
this.subLocality,
this.district,
this.state,
this.pincode,
this.address,
this.date,
this.source,
this.reference,
this.segment,
this.team,
this.gstNumber,
this.isExists,
this.createdDatetime,
this.updatedDatetime});
Account({
this.id,
this.tempId,
this.ownerId,
this.accManagerId,
this.name,
this.salutationName,
this.subLocality,
this.district,
this.state,
this.pincode,
this.address,
this.date,
this.source,
this.reference,
this.segment,
this.team,
this.gstNumber,
this.isExists,
this.createdDatetime,
this.updatedDatetime,
});
Account.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -194,27 +196,27 @@ class Account {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['temp_id'] = this.tempId;
data['owner_id'] = this.ownerId;
data['acc_manager_id'] = this.accManagerId;
data['name'] = this.name;
data['salutation_name'] = this.salutationName;
data['sub_locality'] = this.subLocality;
data['district'] = this.district;
data['state'] = this.state;
data['pincode'] = this.pincode;
data['address'] = this.address;
data['date'] = this.date;
data['source'] = this.source;
data['reference'] = this.reference;
data['segment'] = this.segment;
data['team'] = this.team;
data['gst_number'] = this.gstNumber;
data['is_exists'] = this.isExists;
data['created_datetime'] = this.createdDatetime;
data['updated_datetime'] = this.updatedDatetime;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['temp_id'] = tempId;
data['owner_id'] = ownerId;
data['acc_manager_id'] = accManagerId;
data['name'] = name;
data['salutation_name'] = salutationName;
data['sub_locality'] = subLocality;
data['district'] = district;
data['state'] = state;
data['pincode'] = pincode;
data['address'] = address;
data['date'] = date;
data['source'] = source;
data['reference'] = reference;
data['segment'] = segment;
data['team'] = team;
data['gst_number'] = gstNumber;
data['is_exists'] = isExists;
data['created_datetime'] = createdDatetime;
data['updated_datetime'] = updatedDatetime;
return data;
}
}
......@@ -235,21 +237,22 @@ class Contact {
String? createdDatetime;
String? updatedDatetime;
Contact(
{this.id,
this.accId,
this.name,
this.salutationName,
this.mob1,
this.mob2,
this.tel,
this.email,
this.type,
this.designation,
this.date,
this.isExists,
this.createdDatetime,
this.updatedDatetime});
Contact({
this.id,
this.accId,
this.name,
this.salutationName,
this.mob1,
this.mob2,
this.tel,
this.email,
this.type,
this.designation,
this.date,
this.isExists,
this.createdDatetime,
this.updatedDatetime,
});
Contact.fromJson(Map<String, dynamic> json) {
id = json['id'];
......@@ -269,21 +272,21 @@ class Contact {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['acc_id'] = this.accId;
data['name'] = this.name;
data['salutation_name'] = this.salutationName;
data['mob1'] = this.mob1;
data['mob2'] = this.mob2;
data['tel'] = this.tel;
data['email'] = this.email;
data['type'] = this.type;
data['designation'] = this.designation;
data['date'] = this.date;
data['is_exists'] = this.isExists;
data['created_datetime'] = this.createdDatetime;
data['updated_datetime'] = this.updatedDatetime;
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['acc_id'] = accId;
data['name'] = name;
data['salutation_name'] = salutationName;
data['mob1'] = mob1;
data['mob2'] = mob2;
data['tel'] = tel;
data['email'] = email;
data['type'] = type;
data['designation'] = designation;
data['date'] = date;
data['is_exists'] = isExists;
data['created_datetime'] = createdDatetime;
data['updated_datetime'] = updatedDatetime;
return data;
}
}
......@@ -3,14 +3,17 @@ class SubmitProspectListFilterResponse {
String? error;
String? message;
SubmitProspectListFilterResponse(
{this.accountsList, this.error, this.message});
SubmitProspectListFilterResponse({
this.accountsList,
this.error,
this.message,
});
SubmitProspectListFilterResponse.fromJson(Map<String, dynamic> json) {
if (json['accounts_list'] != null) {
accountsList = <AccountsList>[];
json['accounts_list'].forEach((v) {
accountsList!.add(new AccountsList.fromJson(v));
accountsList!.add(AccountsList.fromJson(v));
});
}
error = json['error'];
......@@ -18,13 +21,12 @@ class SubmitProspectListFilterResponse {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.accountsList != null) {
data['accounts_list'] =
this.accountsList!.map((v) => v.toJson()).toList();
final Map<String, dynamic> data = <String, dynamic>{};
if (accountsList != null) {
data['accounts_list'] = accountsList!.map((v) => v.toJson()).toList();
}
data['error'] = this.error;
data['message'] = this.message;
data['error'] = error;
data['message'] = message;
return data;
}
}
......@@ -40,16 +42,17 @@ class AccountsList {
String? aname;
String? age;
AccountsList(
{this.gstNumber,
this.adate,
this.accman,
this.mob1,
this.cname,
this.address,
this.aid,
this.aname,
this.age});
AccountsList({
this.gstNumber,
this.adate,
this.accman,
this.mob1,
this.cname,
this.address,
this.aid,
this.aname,
this.age,
});
AccountsList.fromJson(Map<String, dynamic> json) {
gstNumber = json['gst_number'];
......@@ -64,16 +67,16 @@ class AccountsList {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['gst_number'] = this.gstNumber;
data['adate'] = this.adate;
data['accman'] = this.accman;
data['mob1'] = this.mob1;
data['cname'] = this.cname;
data['address'] = this.address;
data['aid'] = this.aid;
data['aname'] = this.aname;
data['age'] = this.age;
final Map<String, dynamic> data = <String, dynamic>{};
data['gst_number'] = gstNumber;
data['adate'] = adate;
data['accman'] = accman;
data['mob1'] = mob1;
data['cname'] = cname;
data['address'] = address;
data['aid'] = aid;
data['aname'] = aname;
data['age'] = age;
return data;
}
}
......@@ -15,7 +15,7 @@ class appointmentCalendarResponse {
if (json['appointments'] != null) {
appointments = <Appointments>[];
json['appointments'].forEach((v) {
appointments!.add(new Appointments.fromJson(v));
appointments!.add(Appointments.fromJson(v));
});
}
error = json['error'];
......@@ -24,13 +24,13 @@ class appointmentCalendarResponse {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.appointments != null) {
data['appointments'] = this.appointments!.map((v) => v.toJson()).toList();
final Map<String, dynamic> data = <String, dynamic>{};
if (appointments != null) {
data['appointments'] = appointments!.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;
}
}
......@@ -65,14 +65,14 @@ class Appointments {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['emp_id'] = this.empId;
data['id'] = this.id;
data['lead_id'] = this.leadId;
data['app_date'] = this.appDate;
data['name'] = this.name;
data['product'] = this.product;
data['mob1'] = this.mob1;
final Map<String, dynamic> data = <String, dynamic>{};
data['emp_id'] = empId;
data['id'] = id;
data['lead_id'] = leadId;
data['app_date'] = appDate;
data['name'] = name;
data['product'] = product;
data['mob1'] = mob1;
return data;
}
}
......@@ -4,8 +4,12 @@ class crmAddFollowUpResponse {
String? message;
int? sessionExists;
crmAddFollowUpResponse(
{this.redirectTo, this.error, this.message, this.sessionExists});
crmAddFollowUpResponse({
this.redirectTo,
this.error,
this.message,
this.sessionExists,
});
crmAddFollowUpResponse.fromJson(Map<String, dynamic> json) {
redirectTo = json['redirect_to'];
......@@ -15,11 +19,11 @@ class crmAddFollowUpResponse {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['redirect_to'] = this.redirectTo;
data['error'] = this.error;
data['message'] = this.message;
data['session_exists'] = this.sessionExists;
final Map<String, dynamic> data = <String, dynamic>{};
data['redirect_to'] = redirectTo;
data['error'] = error;
data['message'] = message;
data['session_exists'] = sessionExists;
return data;
}
}
......@@ -4,15 +4,19 @@ class crmDashboardFollowUpResponse {
String? message;
int? sessionExists;
crmDashboardFollowUpResponse(
{this.error, this.followupLists, this.message, this.sessionExists});
crmDashboardFollowUpResponse({
this.error,
this.followupLists,
this.message,
this.sessionExists,
});
crmDashboardFollowUpResponse.fromJson(Map<String, dynamic> json) {
error = json['error'];
if (json['followup_lists'] != null) {
followupLists = <FollowupLists>[];
json['followup_lists'].forEach((v) {
followupLists!.add(new FollowupLists.fromJson(v));
followupLists!.add(FollowupLists.fromJson(v));
});
}
message = json['message'];
......@@ -20,14 +24,13 @@ class crmDashboardFollowUpResponse {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['error'] = this.error;
if (this.followupLists != null) {
data['followup_lists'] =
this.followupLists!.map((v) => v.toJson()).toList();
final Map<String, dynamic> data = <String, dynamic>{};
data['error'] = error;
if (followupLists != null) {
data['followup_lists'] = followupLists!.map((v) => v.toJson()).toList();
}
data['message'] = this.message;
data['session_exists'] = this.sessionExists;
data['message'] = message;
data['session_exists'] = sessionExists;
return data;
}
}
......@@ -42,15 +45,16 @@ class FollowupLists {
String? lempid;
String? aid;
FollowupLists(
{this.aname,
this.appdate,
this.atype,
this.anote,
this.leadid,
this.lstatus,
this.lempid,
this.aid});
FollowupLists({
this.aname,
this.appdate,
this.atype,
this.anote,
this.leadid,
this.lstatus,
this.lempid,
this.aid,
});
FollowupLists.fromJson(Map<String, dynamic> json) {
aname = json['aname'];
......@@ -64,15 +68,15 @@ class FollowupLists {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['aname'] = this.aname;
data['appdate'] = this.appdate;
data['atype'] = this.atype;
data['anote'] = this.anote;
data['leadid'] = this.leadid;
data['lstatus'] = this.lstatus;
data['lempid'] = this.lempid;
data['aid'] = this.aid;
final Map<String, dynamic> data = <String, dynamic>{};
data['aname'] = aname;
data['appdate'] = appdate;
data['atype'] = atype;
data['anote'] = anote;
data['leadid'] = leadid;
data['lstatus'] = lstatus;
data['lempid'] = lempid;
data['aid'] = aid;
return data;
}
}
......@@ -4,15 +4,19 @@ class crmDashboardQuotationResponse {
String? message;
int? sessionExists;
crmDashboardQuotationResponse(
{this.error, this.quotationLists, this.message, this.sessionExists});
crmDashboardQuotationResponse({
this.error,
this.quotationLists,
this.message,
this.sessionExists,
});
crmDashboardQuotationResponse.fromJson(Map<String, dynamic> json) {
error = json['error'];
if (json['quotation_lists'] != null) {
quotationLists = <QuotationLists>[];
json['quotation_lists'].forEach((v) {
quotationLists!.add(new QuotationLists.fromJson(v));
quotationLists!.add(QuotationLists.fromJson(v));
});
}
message = json['message'];
......@@ -20,14 +24,13 @@ class crmDashboardQuotationResponse {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['error'] = this.error;
if (this.quotationLists != null) {
data['quotation_lists'] =
this.quotationLists!.map((v) => v.toJson()).toList();
final Map<String, dynamic> data = <String, dynamic>{};
data['error'] = error;
if (quotationLists != null) {
data['quotation_lists'] = quotationLists!.map((v) => v.toJson()).toList();
}
data['message'] = this.message;
data['session_exists'] = this.sessionExists;
data['message'] = message;
data['session_exists'] = sessionExists;
return data;
}
}
......@@ -39,8 +42,13 @@ class QuotationLists {
String? lempid;
String? quotationId;
QuotationLists(
{this.aname, this.leadid, this.lstatus, this.lempid, this.quotationId});
QuotationLists({
this.aname,
this.leadid,
this.lstatus,
this.lempid,
this.quotationId,
});
QuotationLists.fromJson(Map<String, dynamic> json) {
aname = json['aname'];
......@@ -51,12 +59,12 @@ class QuotationLists {
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['aname'] = this.aname;
data['leadid'] = this.leadid;
data['lstatus'] = this.lstatus;
data['lempid'] = this.lempid;
data['quotation_id'] = this.quotationId;
final Map<String, dynamic> data = <String, dynamic>{};
data['aname'] = aname;
data['leadid'] = leadid;
data['lstatus'] = lstatus;
data['lempid'] = lempid;
data['quotation_id'] = quotationId;
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