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

17-09

parent 185e0896
...@@ -5,24 +5,27 @@ class commonAccountdetailsResponse { ...@@ -5,24 +5,27 @@ class commonAccountdetailsResponse {
String? error; String? error;
String? message; String? message;
commonAccountdetailsResponse( commonAccountdetailsResponse({
{this.accountDetails, this.accountDetails,
this.balanceDetails, this.balanceDetails,
this.ledgerList, this.ledgerList,
this.error, this.error,
this.message}); this.message,
});
commonAccountdetailsResponse.fromJson(Map<String, dynamic> json) { commonAccountdetailsResponse.fromJson(Map<String, dynamic> json) {
accountDetails = json['account_details'] != null accountDetails =
? new AccountDetails.fromJson(json['account_details']) json['account_details'] != null
: null; ? AccountDetails.fromJson(json['account_details'])
balanceDetails = json['balance_details'] != null : null;
? new BalanceDetails.fromJson(json['balance_details']) balanceDetails =
: null; json['balance_details'] != null
? BalanceDetails.fromJson(json['balance_details'])
: null;
if (json['ledger_list'] != null) { if (json['ledger_list'] != null) {
ledgerList = <LedgerList>[]; ledgerList = <LedgerList>[];
json['ledger_list'].forEach((v) { json['ledger_list'].forEach((v) {
ledgerList!.add(new LedgerList.fromJson(v)); ledgerList!.add(LedgerList.fromJson(v));
}); });
} }
error = json['error']; error = json['error'];
...@@ -30,18 +33,18 @@ class commonAccountdetailsResponse { ...@@ -30,18 +33,18 @@ class commonAccountdetailsResponse {
} }
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.accountDetails != null) { if (accountDetails != null) {
data['account_details'] = this.accountDetails!.toJson(); data['account_details'] = accountDetails!.toJson();
} }
if (this.balanceDetails != null) { if (balanceDetails != null) {
data['balance_details'] = this.balanceDetails!.toJson(); data['balance_details'] = balanceDetails!.toJson();
} }
if (this.ledgerList != null) { if (ledgerList != null) {
data['ledger_list'] = this.ledgerList!.map((v) => v.toJson()).toList(); data['ledger_list'] = ledgerList!.map((v) => v.toJson()).toList();
} }
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -63,22 +66,23 @@ class AccountDetails { ...@@ -63,22 +66,23 @@ class AccountDetails {
String? district; String? district;
String? subLocality; String? subLocality;
AccountDetails( AccountDetails({
{this.id, this.id,
this.type, this.type,
this.refId, this.refId,
this.name, this.name,
this.address, this.address,
this.createdDatetime, this.createdDatetime,
this.bankName, this.bankName,
this.bankBranchName, this.bankBranchName,
this.bankIfscCode, this.bankIfscCode,
this.bankAccountHolderName, this.bankAccountHolderName,
this.bankAccountNumber, this.bankAccountNumber,
this.bankUpiId, this.bankUpiId,
this.state, this.state,
this.district, this.district,
this.subLocality}); this.subLocality,
});
AccountDetails.fromJson(Map<String, dynamic> json) { AccountDetails.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];
...@@ -99,22 +103,22 @@ class AccountDetails { ...@@ -99,22 +103,22 @@ class AccountDetails {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = Map<String, dynamic>();
data['id'] = this.id; data['id'] = id;
data['type'] = this.type; data['type'] = type;
data['ref_id'] = this.refId; data['ref_id'] = refId;
data['name'] = this.name; data['name'] = name;
data['address'] = this.address; data['address'] = address;
data['created_datetime'] = this.createdDatetime; data['created_datetime'] = createdDatetime;
data['bank_name'] = this.bankName; data['bank_name'] = bankName;
data['bank_branch_name'] = this.bankBranchName; data['bank_branch_name'] = bankBranchName;
data['bank_ifsc_code'] = this.bankIfscCode; data['bank_ifsc_code'] = bankIfscCode;
data['bank_account_holder_name'] = this.bankAccountHolderName; data['bank_account_holder_name'] = bankAccountHolderName;
data['bank_account_number'] = this.bankAccountNumber; data['bank_account_number'] = bankAccountNumber;
data['bank_upi_id'] = this.bankUpiId; data['bank_upi_id'] = bankUpiId;
data['state'] = this.state; data['state'] = state;
data['district'] = this.district; data['district'] = district;
data['sub_locality'] = this.subLocality; data['sub_locality'] = subLocality;
return data; return data;
} }
} }
...@@ -133,10 +137,10 @@ class BalanceDetails { ...@@ -133,10 +137,10 @@ class BalanceDetails {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = Map<String, dynamic>();
data['total_debit'] = this.totalDebit; data['total_debit'] = totalDebit;
data['total_credit'] = this.totalCredit; data['total_credit'] = totalCredit;
data['balance'] = this.balance; data['balance'] = balance;
return data; return data;
} }
} }
...@@ -153,17 +157,18 @@ class LedgerList { ...@@ -153,17 +157,18 @@ class LedgerList {
String? date; String? date;
String? createdDatetime; String? createdDatetime;
LedgerList( LedgerList({
{this.id, this.id,
this.accountId, this.accountId,
this.refType, this.refType,
this.refId, this.refId,
this.type, this.type,
this.description, this.description,
this.creditAmount, this.creditAmount,
this.debitAmount, this.debitAmount,
this.date, this.date,
this.createdDatetime}); this.createdDatetime,
});
LedgerList.fromJson(Map<String, dynamic> json) { LedgerList.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];
...@@ -179,17 +184,17 @@ class LedgerList { ...@@ -179,17 +184,17 @@ class LedgerList {
} }
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['account_id'] = this.accountId; data['account_id'] = accountId;
data['ref_type'] = this.refType; data['ref_type'] = refType;
data['ref_id'] = this.refId; data['ref_id'] = refId;
data['type'] = this.type; data['type'] = type;
data['description'] = this.description; data['description'] = description;
data['credit_amount'] = this.creditAmount; data['credit_amount'] = creditAmount;
data['debit_amount'] = this.debitAmount; data['debit_amount'] = debitAmount;
data['date'] = this.date; data['date'] = date;
data['created_datetime'] = this.createdDatetime; data['created_datetime'] = createdDatetime;
return data; return data;
} }
} }
...@@ -9,7 +9,7 @@ class commonAccountlistResponse { ...@@ -9,7 +9,7 @@ class commonAccountlistResponse {
if (json['account_list'] != null) { if (json['account_list'] != null) {
accountList = <AccountList>[]; accountList = <AccountList>[];
json['account_list'].forEach((v) { json['account_list'].forEach((v) {
accountList!.add(new AccountList.fromJson(v)); accountList!.add(AccountList.fromJson(v));
}); });
} }
error = json['error']; error = json['error'];
...@@ -17,12 +17,12 @@ class commonAccountlistResponse { ...@@ -17,12 +17,12 @@ class commonAccountlistResponse {
} }
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.accountList != null) { if (accountList != null) {
data['account_list'] = this.accountList!.map((v) => v.toJson()).toList(); data['account_list'] = accountList!.map((v) => v.toJson()).toList();
} }
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -53,31 +53,32 @@ class AccountList { ...@@ -53,31 +53,32 @@ class AccountList {
String? email; String? email;
String? contactName; String? contactName;
AccountList( AccountList({
{this.id, this.id,
this.isPaymentAccount, this.isPaymentAccount,
this.createdEmployeeId, this.createdEmployeeId,
this.type, this.type,
this.refId, this.refId,
this.name, this.name,
this.subLocality, this.subLocality,
this.district, this.district,
this.state, this.state,
this.address, this.address,
this.datetime, this.datetime,
this.empId, this.empId,
this.bankName, this.bankName,
this.bankBranchName, this.bankBranchName,
this.bankIfscCode, this.bankIfscCode,
this.bankAccountHolderName, this.bankAccountHolderName,
this.bankAccountNumber, this.bankAccountNumber,
this.bankUpiId, this.bankUpiId,
this.isExists, this.isExists,
this.createdDatetime, this.createdDatetime,
this.updatedDatetime, this.updatedDatetime,
this.mob1, this.mob1,
this.email, this.email,
this.contactName}); this.contactName,
});
AccountList.fromJson(Map<String, dynamic> json) { AccountList.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];
...@@ -107,31 +108,31 @@ class AccountList { ...@@ -107,31 +108,31 @@ class AccountList {
} }
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_payment_account'] = this.isPaymentAccount; data['is_payment_account'] = isPaymentAccount;
data['created_employee_id'] = this.createdEmployeeId; data['created_employee_id'] = createdEmployeeId;
data['type'] = this.type; data['type'] = type;
data['ref_id'] = this.refId; data['ref_id'] = refId;
data['name'] = this.name; data['name'] = name;
data['sub_locality'] = this.subLocality; data['sub_locality'] = subLocality;
data['district'] = this.district; data['district'] = district;
data['state'] = this.state; data['state'] = state;
data['address'] = this.address; data['address'] = address;
data['datetime'] = this.datetime; data['datetime'] = datetime;
data['emp_id'] = this.empId; data['emp_id'] = empId;
data['bank_name'] = this.bankName; data['bank_name'] = bankName;
data['bank_branch_name'] = this.bankBranchName; data['bank_branch_name'] = bankBranchName;
data['bank_ifsc_code'] = this.bankIfscCode; data['bank_ifsc_code'] = bankIfscCode;
data['bank_account_holder_name'] = this.bankAccountHolderName; data['bank_account_holder_name'] = bankAccountHolderName;
data['bank_account_number'] = this.bankAccountNumber; data['bank_account_number'] = bankAccountNumber;
data['bank_upi_id'] = this.bankUpiId; data['bank_upi_id'] = bankUpiId;
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['mob1'] = this.mob1; data['mob1'] = mob1;
data['email'] = this.email; data['email'] = email;
data['contact_name'] = this.contactName; data['contact_name'] = contactName;
return data; return data;
} }
} }
...@@ -3,25 +3,19 @@ class commonAddAccountsSubmitResponse { ...@@ -3,25 +3,19 @@ class commonAddAccountsSubmitResponse {
String? message; String? message;
String? id; String? id;
commonAddAccountsSubmitResponse({ commonAddAccountsSubmitResponse({this.error, this.message, this.id});
this.error,
this.message,
this.id,
});
commonAddAccountsSubmitResponse.fromJson(Map<String, dynamic> json) { commonAddAccountsSubmitResponse.fromJson(Map<String, dynamic> json) {
error = json['error']; error = json['error'];
message = json['message']; message = json['message'];
id = json['id']; id = json['id'];
} }
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['id'] = this.id; data['id'] = id;
return data; return data;
} }
} }
...@@ -16,12 +16,11 @@ class commonAddAccountsViewResponse { ...@@ -16,12 +16,11 @@ class commonAddAccountsViewResponse {
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['account_types']!=null){ if (json['account_types'] != null) {
accountTypes = json['account_types'].cast<String>(); accountTypes = json['account_types'].cast<String>();
} }
...@@ -30,17 +29,16 @@ class commonAddAccountsViewResponse { ...@@ -30,17 +29,16 @@ class commonAddAccountsViewResponse {
} }
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.states != null) { if (states != null) {
data['states'] = this.states!.map((v) => v.toJson()).toList(); data['states'] = states!.map((v) => v.toJson()).toList();
} }
if(this.accountTypes!=null){ if (accountTypes != null) {
data['account_types'] = accountTypes;
data['account_types'] = this.accountTypes;
} }
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -57,9 +55,9 @@ class States { ...@@ -57,9 +55,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;
} }
} }
...@@ -10,20 +10,20 @@ class AccessiblePagesResponse { ...@@ -10,20 +10,20 @@ class AccessiblePagesResponse {
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;
} }
} }
...@@ -42,10 +42,10 @@ class PagesAccessible { ...@@ -42,10 +42,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;
} }
} }
...@@ -10,19 +10,19 @@ class GetDistrictOnStateResponse { ...@@ -10,19 +10,19 @@ class GetDistrictOnStateResponse {
if (json['districts'] != null) { if (json['districts'] != null) {
districts = <Districts>[]; districts = <Districts>[];
json['districts'].forEach((v) { json['districts'].forEach((v) {
districts!.add(new Districts.fromJson(v)); districts!.add(Districts.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.districts != null) { if (districts != null) {
data['districts'] = this.districts!.map((v) => v.toJson()).toList(); data['districts'] = districts!.map((v) => v.toJson()).toList();
} }
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -36,14 +36,15 @@ class Districts { ...@@ -36,14 +36,15 @@ class Districts {
String? createdDatetime; String? createdDatetime;
String? updatedDatetime; String? updatedDatetime;
Districts( Districts({
{this.id, this.id,
this.state, this.state,
this.district, this.district,
this.date, this.date,
this.isExists, this.isExists,
this.createdDatetime, this.createdDatetime,
this.updatedDatetime}); this.updatedDatetime,
});
Districts.fromJson(Map<String, dynamic> json) { Districts.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];
...@@ -56,14 +57,14 @@ class Districts { ...@@ -56,14 +57,14 @@ class Districts {
} }
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['state'] = this.state; data['state'] = state;
data['district'] = this.district; data['district'] = district;
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;
} }
} }
...@@ -10,19 +10,19 @@ class GetSegmentOnTeamResponse { ...@@ -10,19 +10,19 @@ class GetSegmentOnTeamResponse {
if (json['segments'] != null) { if (json['segments'] != null) {
segments = <Segments>[]; segments = <Segments>[];
json['segments'].forEach((v) { json['segments'].forEach((v) {
segments!.add(new Segments.fromJson(v)); segments!.add(Segments.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.segments != null) { if (segments != null) {
data['segments'] = this.segments!.map((v) => v.toJson()).toList(); data['segments'] = segments!.map((v) => v.toJson()).toList();
} }
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -36,14 +36,15 @@ class Segments { ...@@ -36,14 +36,15 @@ class Segments {
String? createdDatetime; String? createdDatetime;
String? updatedDatetime; String? updatedDatetime;
Segments( Segments({
{this.id, this.id,
this.teamId, this.teamId,
this.name, this.name,
this.date, this.date,
this.isExists, this.isExists,
this.createdDatetime, this.createdDatetime,
this.updatedDatetime}); this.updatedDatetime,
});
Segments.fromJson(Map<String, dynamic> json) { Segments.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];
...@@ -56,14 +57,14 @@ class Segments { ...@@ -56,14 +57,14 @@ class Segments {
} }
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['team_id'] = this.teamId; data['team_id'] = teamId;
data['name'] = this.name; data['name'] = name;
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;
} }
} }
...@@ -10,19 +10,19 @@ class GetSourceOnReferenceResponse { ...@@ -10,19 +10,19 @@ class GetSourceOnReferenceResponse {
if (json['references'] != null) { if (json['references'] != null) {
references = <References>[]; references = <References>[];
json['references'].forEach((v) { json['references'].forEach((v) {
references!.add(new References.fromJson(v)); references!.add(References.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.references != null) { if (references != null) {
data['references'] = this.references!.map((v) => v.toJson()).toList(); data['references'] = references!.map((v) => v.toJson()).toList();
} }
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -36,14 +36,15 @@ class References { ...@@ -36,14 +36,15 @@ class References {
String? createdDatetime; String? createdDatetime;
String? updatedDatetime; String? updatedDatetime;
References( References({
{this.id, this.id,
this.sourceId, this.sourceId,
this.name, this.name,
this.date, this.date,
this.isExists, this.isExists,
this.createdDatetime, this.createdDatetime,
this.updatedDatetime}); this.updatedDatetime,
});
References.fromJson(Map<String, dynamic> json) { References.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];
...@@ -56,14 +57,14 @@ class References { ...@@ -56,14 +57,14 @@ class References {
} }
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['source_id'] = this.sourceId; data['source_id'] = sourceId;
data['name'] = this.name; data['name'] = name;
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;
} }
} }
...@@ -10,20 +10,19 @@ class GetSubLocOnDistrictResponse { ...@@ -10,20 +10,19 @@ class GetSubLocOnDistrictResponse {
if (json['sub_locations'] != null) { if (json['sub_locations'] != null) {
subLocations = <SubLocations>[]; subLocations = <SubLocations>[];
json['sub_locations'].forEach((v) { json['sub_locations'].forEach((v) {
subLocations!.add(new SubLocations.fromJson(v)); subLocations!.add(SubLocations.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.subLocations != null) { if (subLocations != null) {
data['sub_locations'] = data['sub_locations'] = subLocations!.map((v) => v.toJson()).toList();
this.subLocations!.map((v) => v.toJson()).toList();
} }
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -37,14 +36,15 @@ class SubLocations { ...@@ -37,14 +36,15 @@ class SubLocations {
String? createdDatetime; String? createdDatetime;
String? updatedDatetime; String? updatedDatetime;
SubLocations( SubLocations({
{this.id, this.id,
this.districtId, this.districtId,
this.subLocality, this.subLocality,
this.date, this.date,
this.isExists, this.isExists,
this.createdDatetime, this.createdDatetime,
this.updatedDatetime}); this.updatedDatetime,
});
SubLocations.fromJson(Map<String, dynamic> json) { SubLocations.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];
...@@ -57,14 +57,14 @@ class SubLocations { ...@@ -57,14 +57,14 @@ class SubLocations {
} }
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['district_id'] = this.districtId; data['district_id'] = districtId;
data['sub_locality'] = this.subLocality; data['sub_locality'] = subLocality;
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;
} }
} }
...@@ -10,19 +10,19 @@ class LeadListContactPopUpResponse { ...@@ -10,19 +10,19 @@ class LeadListContactPopUpResponse {
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));
}); });
} }
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.contacts != null) { if (contacts != null) {
data['contacts'] = this.contacts!.map((v) => v.toJson()).toList(); data['contacts'] = contacts!.map((v) => v.toJson()).toList();
} }
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -43,21 +43,22 @@ class Contacts { ...@@ -43,21 +43,22 @@ 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,
this.mob1, this.mob1,
this.mob2, this.mob2,
this.tel, this.tel,
this.email, this.email,
this.type, this.type,
this.designation, this.designation,
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'];
...@@ -77,21 +78,21 @@ class Contacts { ...@@ -77,21 +78,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;
} }
} }
...@@ -6,37 +6,38 @@ class LeadListViewResponse { ...@@ -6,37 +6,38 @@ class LeadListViewResponse {
String? error; String? error;
String? message; String? message;
LeadListViewResponse( LeadListViewResponse({
{this.sources, this.sources,
this.teams, this.teams,
this.states, this.states,
this.employees, this.employees,
this.error, this.error,
this.message}); this.message,
});
LeadListViewResponse.fromJson(Map<String, dynamic> json) { LeadListViewResponse.fromJson(Map<String, dynamic> json) {
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['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));
}); });
} }
error = json['error']; error = json['error'];
...@@ -44,21 +45,21 @@ class LeadListViewResponse { ...@@ -44,21 +45,21 @@ class LeadListViewResponse {
} }
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.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.employees != null) { if (employees != null) {
data['employees'] = this.employees!.map((v) => v.toJson()).toList(); data['employees'] = employees!.map((v) => v.toJson()).toList();
} }
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -75,12 +76,13 @@ class Sources { ...@@ -75,12 +76,13 @@ 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;
} }
} }
class Teams { class Teams {
String? id; String? id;
String? name; String? name;
...@@ -93,12 +95,13 @@ class Teams { ...@@ -93,12 +95,13 @@ 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;
} }
} }
class States { class States {
String? id; String? id;
String? name; String? name;
...@@ -111,12 +114,13 @@ class States { ...@@ -111,12 +114,13 @@ 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;
} }
} }
class Employees { class Employees {
String? id; String? id;
String? name; String? name;
...@@ -129,9 +133,9 @@ class Employees { ...@@ -129,9 +133,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;
} }
} }
\ No newline at end of file
...@@ -9,7 +9,7 @@ class NearbyOpenLeadsResponse { ...@@ -9,7 +9,7 @@ class NearbyOpenLeadsResponse {
if (json['lead_list'] != null) { if (json['lead_list'] != null) {
leadList = <LeadList>[]; leadList = <LeadList>[];
json['lead_list'].forEach((v) { json['lead_list'].forEach((v) {
leadList!.add(new LeadList.fromJson(v)); leadList!.add(LeadList.fromJson(v));
}); });
} }
error = json['error']; error = json['error'];
...@@ -17,12 +17,12 @@ class NearbyOpenLeadsResponse { ...@@ -17,12 +17,12 @@ class NearbyOpenLeadsResponse {
} }
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.leadList != null) { if (leadList != null) {
data['lead_list'] = this.leadList!.map((v) => v.toJson()).toList(); data['lead_list'] = leadList!.map((v) => v.toJson()).toList();
} }
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -53,31 +53,32 @@ class LeadList { ...@@ -53,31 +53,32 @@ class LeadList {
String? email; String? email;
String? distance; String? distance;
LeadList( LeadList({
{this.id, this.id,
this.ownerId, this.ownerId,
this.accId, this.accId,
this.accManagerId, this.accManagerId,
this.status, this.status,
this.openStatus, this.openStatus,
this.date, this.date,
this.closeDate, this.closeDate,
this.closereason, this.closereason,
this.competitor, this.competitor,
this.orderGainId, this.orderGainId,
this.loc, this.loc,
this.isExists, this.isExists,
this.createdDatetime, this.createdDatetime,
this.updatedDatetime, this.updatedDatetime,
this.followupFunction, this.followupFunction,
this.name, this.name,
this.contName, this.contName,
this.address, this.address,
this.mob1, this.mob1,
this.mob2, this.mob2,
this.tel, this.tel,
this.email, this.email,
this.distance}); this.distance,
});
LeadList.fromJson(Map<String, dynamic> json) { LeadList.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];
...@@ -107,31 +108,31 @@ class LeadList { ...@@ -107,31 +108,31 @@ class LeadList {
} }
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['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;
} }
} }
...@@ -9,7 +9,7 @@ class ProspectListViewResponse { ...@@ -9,7 +9,7 @@ class ProspectListViewResponse {
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));
}); });
} }
error = json['error']; error = json['error'];
...@@ -17,12 +17,12 @@ class ProspectListViewResponse { ...@@ -17,12 +17,12 @@ class ProspectListViewResponse {
} }
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();
} }
data['error'] = this.error; data['error'] = error;
data['message'] = this.message; data['message'] = message;
return data; return data;
} }
} }
...@@ -39,9 +39,9 @@ class Employees { ...@@ -39,9 +39,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;
} }
} }
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