copyWithWrapped method

StudentLoan copyWithWrapped({
  1. Wrapped<String?>? accountId,
  2. Wrapped<String?>? accountNumber,
  3. Wrapped<List<DateTime>?>? disbursementDates,
  4. Wrapped<DateTime?>? expectedPayoffDate,
  5. Wrapped<String?>? guarantor,
  6. Wrapped<double>? interestRatePercentage,
  7. Wrapped<bool?>? isOverdue,
  8. Wrapped<double?>? lastPaymentAmount,
  9. Wrapped<DateTime?>? lastPaymentDate,
  10. Wrapped<DateTime?>? lastStatementIssueDate,
  11. Wrapped<String?>? loanName,
  12. Wrapped<StudentLoanStatus>? loanStatus,
  13. Wrapped<double?>? minimumPaymentAmount,
  14. Wrapped<DateTime?>? nextPaymentDueDate,
  15. Wrapped<DateTime?>? originationDate,
  16. Wrapped<double?>? originationPrincipalAmount,
  17. Wrapped<double?>? outstandingInterestAmount,
  18. Wrapped<String?>? paymentReferenceNumber,
  19. Wrapped<PSLFStatus>? pslfStatus,
  20. Wrapped<StudentRepaymentPlan>? repaymentPlan,
  21. Wrapped<String?>? sequenceNumber,
  22. Wrapped<ServicerAddressData>? servicerAddress,
  23. Wrapped<double?>? ytdInterestPaid,
  24. Wrapped<double?>? ytdPrincipalPaid,
})

Implementation

StudentLoan copyWithWrapped(
    {Wrapped<String?>? accountId,
    Wrapped<String?>? accountNumber,
    Wrapped<List<DateTime>?>? disbursementDates,
    Wrapped<DateTime?>? expectedPayoffDate,
    Wrapped<String?>? guarantor,
    Wrapped<double>? interestRatePercentage,
    Wrapped<bool?>? isOverdue,
    Wrapped<double?>? lastPaymentAmount,
    Wrapped<DateTime?>? lastPaymentDate,
    Wrapped<DateTime?>? lastStatementIssueDate,
    Wrapped<String?>? loanName,
    Wrapped<StudentLoanStatus>? loanStatus,
    Wrapped<double?>? minimumPaymentAmount,
    Wrapped<DateTime?>? nextPaymentDueDate,
    Wrapped<DateTime?>? originationDate,
    Wrapped<double?>? originationPrincipalAmount,
    Wrapped<double?>? outstandingInterestAmount,
    Wrapped<String?>? paymentReferenceNumber,
    Wrapped<PSLFStatus>? pslfStatus,
    Wrapped<StudentRepaymentPlan>? repaymentPlan,
    Wrapped<String?>? sequenceNumber,
    Wrapped<ServicerAddressData>? servicerAddress,
    Wrapped<double?>? ytdInterestPaid,
    Wrapped<double?>? ytdPrincipalPaid}) {
  return StudentLoan(
      accountId: (accountId != null ? accountId.value : this.accountId),
      accountNumber:
          (accountNumber != null ? accountNumber.value : this.accountNumber),
      disbursementDates: (disbursementDates != null
          ? disbursementDates.value
          : this.disbursementDates),
      expectedPayoffDate: (expectedPayoffDate != null
          ? expectedPayoffDate.value
          : this.expectedPayoffDate),
      guarantor: (guarantor != null ? guarantor.value : this.guarantor),
      interestRatePercentage: (interestRatePercentage != null
          ? interestRatePercentage.value
          : this.interestRatePercentage),
      isOverdue: (isOverdue != null ? isOverdue.value : this.isOverdue),
      lastPaymentAmount: (lastPaymentAmount != null
          ? lastPaymentAmount.value
          : this.lastPaymentAmount),
      lastPaymentDate: (lastPaymentDate != null
          ? lastPaymentDate.value
          : this.lastPaymentDate),
      lastStatementIssueDate: (lastStatementIssueDate != null
          ? lastStatementIssueDate.value
          : this.lastStatementIssueDate),
      loanName: (loanName != null ? loanName.value : this.loanName),
      loanStatus: (loanStatus != null ? loanStatus.value : this.loanStatus),
      minimumPaymentAmount: (minimumPaymentAmount != null
          ? minimumPaymentAmount.value
          : this.minimumPaymentAmount),
      nextPaymentDueDate: (nextPaymentDueDate != null
          ? nextPaymentDueDate.value
          : this.nextPaymentDueDate),
      originationDate: (originationDate != null
          ? originationDate.value
          : this.originationDate),
      originationPrincipalAmount: (originationPrincipalAmount != null
          ? originationPrincipalAmount.value
          : this.originationPrincipalAmount),
      outstandingInterestAmount: (outstandingInterestAmount != null
          ? outstandingInterestAmount.value
          : this.outstandingInterestAmount),
      paymentReferenceNumber: (paymentReferenceNumber != null
          ? paymentReferenceNumber.value
          : this.paymentReferenceNumber),
      pslfStatus: (pslfStatus != null ? pslfStatus.value : this.pslfStatus),
      repaymentPlan:
          (repaymentPlan != null ? repaymentPlan.value : this.repaymentPlan),
      sequenceNumber: (sequenceNumber != null
          ? sequenceNumber.value
          : this.sequenceNumber),
      servicerAddress: (servicerAddress != null
          ? servicerAddress.value
          : this.servicerAddress),
      ytdInterestPaid: (ytdInterestPaid != null
          ? ytdInterestPaid.value
          : this.ytdInterestPaid),
      ytdPrincipalPaid: (ytdPrincipalPaid != null
          ? ytdPrincipalPaid.value
          : this.ytdPrincipalPaid));
}