copyWithWrapped method

MortgageLiability copyWithWrapped({
  1. Wrapped<String>? accountId,
  2. Wrapped<String>? accountNumber,
  3. Wrapped<double?>? currentLateFee,
  4. Wrapped<double?>? escrowBalance,
  5. Wrapped<bool?>? hasPmi,
  6. Wrapped<bool?>? hasPrepaymentPenalty,
  7. Wrapped<MortgageInterestRate>? interestRate,
  8. Wrapped<double?>? lastPaymentAmount,
  9. Wrapped<DateTime?>? lastPaymentDate,
  10. Wrapped<String?>? loanTypeDescription,
  11. Wrapped<String?>? loanTerm,
  12. Wrapped<DateTime?>? maturityDate,
  13. Wrapped<double?>? nextMonthlyPayment,
  14. Wrapped<DateTime?>? nextPaymentDueDate,
  15. Wrapped<DateTime?>? originationDate,
  16. Wrapped<double?>? originationPrincipalAmount,
  17. Wrapped<double?>? pastDueAmount,
  18. Wrapped<MortgagePropertyAddress>? propertyAddress,
  19. Wrapped<double?>? ytdInterestPaid,
  20. Wrapped<double?>? ytdPrincipalPaid,
})

Implementation

MortgageLiability copyWithWrapped(
    {Wrapped<String>? accountId,
    Wrapped<String>? accountNumber,
    Wrapped<double?>? currentLateFee,
    Wrapped<double?>? escrowBalance,
    Wrapped<bool?>? hasPmi,
    Wrapped<bool?>? hasPrepaymentPenalty,
    Wrapped<MortgageInterestRate>? interestRate,
    Wrapped<double?>? lastPaymentAmount,
    Wrapped<DateTime?>? lastPaymentDate,
    Wrapped<String?>? loanTypeDescription,
    Wrapped<String?>? loanTerm,
    Wrapped<DateTime?>? maturityDate,
    Wrapped<double?>? nextMonthlyPayment,
    Wrapped<DateTime?>? nextPaymentDueDate,
    Wrapped<DateTime?>? originationDate,
    Wrapped<double?>? originationPrincipalAmount,
    Wrapped<double?>? pastDueAmount,
    Wrapped<MortgagePropertyAddress>? propertyAddress,
    Wrapped<double?>? ytdInterestPaid,
    Wrapped<double?>? ytdPrincipalPaid}) {
  return MortgageLiability(
      accountId: (accountId != null ? accountId.value : this.accountId),
      accountNumber:
          (accountNumber != null ? accountNumber.value : this.accountNumber),
      currentLateFee: (currentLateFee != null
          ? currentLateFee.value
          : this.currentLateFee),
      escrowBalance:
          (escrowBalance != null ? escrowBalance.value : this.escrowBalance),
      hasPmi: (hasPmi != null ? hasPmi.value : this.hasPmi),
      hasPrepaymentPenalty: (hasPrepaymentPenalty != null
          ? hasPrepaymentPenalty.value
          : this.hasPrepaymentPenalty),
      interestRate:
          (interestRate != null ? interestRate.value : this.interestRate),
      lastPaymentAmount: (lastPaymentAmount != null
          ? lastPaymentAmount.value
          : this.lastPaymentAmount),
      lastPaymentDate: (lastPaymentDate != null
          ? lastPaymentDate.value
          : this.lastPaymentDate),
      loanTypeDescription: (loanTypeDescription != null
          ? loanTypeDescription.value
          : this.loanTypeDescription),
      loanTerm: (loanTerm != null ? loanTerm.value : this.loanTerm),
      maturityDate:
          (maturityDate != null ? maturityDate.value : this.maturityDate),
      nextMonthlyPayment: (nextMonthlyPayment != null
          ? nextMonthlyPayment.value
          : this.nextMonthlyPayment),
      nextPaymentDueDate: (nextPaymentDueDate != null
          ? nextPaymentDueDate.value
          : this.nextPaymentDueDate),
      originationDate: (originationDate != null
          ? originationDate.value
          : this.originationDate),
      originationPrincipalAmount: (originationPrincipalAmount != null
          ? originationPrincipalAmount.value
          : this.originationPrincipalAmount),
      pastDueAmount:
          (pastDueAmount != null ? pastDueAmount.value : this.pastDueAmount),
      propertyAddress: (propertyAddress != null
          ? propertyAddress.value
          : this.propertyAddress),
      ytdInterestPaid: (ytdInterestPaid != null
          ? ytdInterestPaid.value
          : this.ytdInterestPaid),
      ytdPrincipalPaid: (ytdPrincipalPaid != null
          ? ytdPrincipalPaid.value
          : this.ytdPrincipalPaid));
}