Lead constructor

Lead({
  1. required String leadProviderName,
  2. LeadPersonalInformation? personalInformation,
  3. LeadPersonalReferenceInformationJson? personalReferenceInformation,
  4. LeadLoanInformationJson? loanInformation,
  5. LeadMortgageInformationJson? mortgageInformation,
  6. LeadCreditCardInformationJson? creditCardInformation,
  7. LeadSavingsInformationJson? savingsInformation,
  8. LeadCreditInformationJson? creditInformation,
  9. LeadFinancialInformation? financialInformation,
  10. LeadEmploymentInformationJson? employmentInformation,
  11. LeadLegalInformationJson? legalInformation,
  12. LeadEducationInformationJson? educationInformation,
  13. LeadCoApplicantInformationJson? coApplicantInformation,
  14. LeadHealthInformationJson? healthInformation,
  15. LeadIdentificationInformationJson? identificationInformation,
  16. LeadAutoInsuranceInformationJson? autoInsuranceInformation,
  17. List<LeadRefinanceLoanInformationJson> refinanceLoans = const [],
  18. Map<String, List<String>> clientTags = const {},
  19. LeadSessionInformationJson? sessionInformation,
  20. List<LeadAction> leadActions = const [],
  21. required String uuid,
  22. required String companyUUID,
  23. String? sessionUuid,
  24. String? deviceId,
  25. String? referralCompanyUuid,
  26. String? trackingUuid,
  27. String? partnerUserId,
  28. required bool isTest,
  29. required LeadActionType status,
  30. required String createdAt,
  31. required String updatedAt,
})

Returns a new Lead instance.

Implementation

Lead({
  required this.leadProviderName,
  this.personalInformation,
  this.personalReferenceInformation,
  this.loanInformation,
  this.mortgageInformation,
  this.creditCardInformation,
  this.savingsInformation,
  this.creditInformation,
  this.financialInformation,
  this.employmentInformation,
  this.legalInformation,
  this.educationInformation,
  this.coApplicantInformation,
  this.healthInformation,
  this.identificationInformation,
  this.autoInsuranceInformation,
  this.refinanceLoans = const [],
  this.clientTags = const {},
  this.sessionInformation,
  this.leadActions = const [],
  required this.uuid,
  required this.companyUUID,
  this.sessionUuid,
  this.deviceId,
  this.referralCompanyUuid,
  this.trackingUuid,
  this.partnerUserId,
  required this.isTest,
  required this.status,
  required this.createdAt,
  required this.updatedAt,
});