copyWithWrapped method

LiabilityOverride copyWithWrapped({
  1. Wrapped<String>? type,
  2. Wrapped<double>? purchaseApr,
  3. Wrapped<double>? cashApr,
  4. Wrapped<double>? balanceTransferApr,
  5. Wrapped<double>? specialApr,
  6. Wrapped<double>? lastPaymentAmount,
  7. Wrapped<double>? minimumPaymentAmount,
  8. Wrapped<bool>? isOverdue,
  9. Wrapped<DateTime>? originationDate,
  10. Wrapped<double>? principal,
  11. Wrapped<double>? nominalApr,
  12. Wrapped<double>? interestCapitalizationGracePeriodMonths,
  13. Wrapped<StudentLoanRepaymentModel>? repaymentModel,
  14. Wrapped<DateTime>? expectedPayoffDate,
  15. Wrapped<String>? guarantor,
  16. Wrapped<bool>? isFederal,
  17. Wrapped<String>? loanName,
  18. Wrapped<StudentLoanStatus>? loanStatus,
  19. Wrapped<String>? paymentReferenceNumber,
  20. Wrapped<PSLFStatus>? pslfStatus,
  21. Wrapped<String>? repaymentPlanDescription,
  22. Wrapped<String>? repaymentPlanType,
  23. Wrapped<String>? sequenceNumber,
  24. Wrapped<Address>? servicerAddress,
})

Implementation

LiabilityOverride copyWithWrapped(
    {Wrapped<String>? type,
    Wrapped<double>? purchaseApr,
    Wrapped<double>? cashApr,
    Wrapped<double>? balanceTransferApr,
    Wrapped<double>? specialApr,
    Wrapped<double>? lastPaymentAmount,
    Wrapped<double>? minimumPaymentAmount,
    Wrapped<bool>? isOverdue,
    Wrapped<DateTime>? originationDate,
    Wrapped<double>? principal,
    Wrapped<double>? nominalApr,
    Wrapped<double>? interestCapitalizationGracePeriodMonths,
    Wrapped<StudentLoanRepaymentModel>? repaymentModel,
    Wrapped<DateTime>? expectedPayoffDate,
    Wrapped<String>? guarantor,
    Wrapped<bool>? isFederal,
    Wrapped<String>? loanName,
    Wrapped<StudentLoanStatus>? loanStatus,
    Wrapped<String>? paymentReferenceNumber,
    Wrapped<PSLFStatus>? pslfStatus,
    Wrapped<String>? repaymentPlanDescription,
    Wrapped<String>? repaymentPlanType,
    Wrapped<String>? sequenceNumber,
    Wrapped<Address>? servicerAddress}) {
  return LiabilityOverride(
      type: (type != null ? type.value : this.type),
      purchaseApr:
          (purchaseApr != null ? purchaseApr.value : this.purchaseApr),
      cashApr: (cashApr != null ? cashApr.value : this.cashApr),
      balanceTransferApr: (balanceTransferApr != null
          ? balanceTransferApr.value
          : this.balanceTransferApr),
      specialApr: (specialApr != null ? specialApr.value : this.specialApr),
      lastPaymentAmount: (lastPaymentAmount != null
          ? lastPaymentAmount.value
          : this.lastPaymentAmount),
      minimumPaymentAmount: (minimumPaymentAmount != null
          ? minimumPaymentAmount.value
          : this.minimumPaymentAmount),
      isOverdue: (isOverdue != null ? isOverdue.value : this.isOverdue),
      originationDate: (originationDate != null
          ? originationDate.value
          : this.originationDate),
      principal: (principal != null ? principal.value : this.principal),
      nominalApr: (nominalApr != null ? nominalApr.value : this.nominalApr),
      interestCapitalizationGracePeriodMonths:
          (interestCapitalizationGracePeriodMonths != null
              ? interestCapitalizationGracePeriodMonths.value
              : this.interestCapitalizationGracePeriodMonths),
      repaymentModel: (repaymentModel != null
          ? repaymentModel.value
          : this.repaymentModel),
      expectedPayoffDate: (expectedPayoffDate != null
          ? expectedPayoffDate.value
          : this.expectedPayoffDate),
      guarantor: (guarantor != null ? guarantor.value : this.guarantor),
      isFederal: (isFederal != null ? isFederal.value : this.isFederal),
      loanName: (loanName != null ? loanName.value : this.loanName),
      loanStatus: (loanStatus != null ? loanStatus.value : this.loanStatus),
      paymentReferenceNumber: (paymentReferenceNumber != null
          ? paymentReferenceNumber.value
          : this.paymentReferenceNumber),
      pslfStatus: (pslfStatus != null ? pslfStatus.value : this.pslfStatus),
      repaymentPlanDescription: (repaymentPlanDescription != null
          ? repaymentPlanDescription.value
          : this.repaymentPlanDescription),
      repaymentPlanType: (repaymentPlanType != null
          ? repaymentPlanType.value
          : this.repaymentPlanType),
      sequenceNumber: (sequenceNumber != null
          ? sequenceNumber.value
          : this.sequenceNumber),
      servicerAddress: (servicerAddress != null
          ? servicerAddress.value
          : this.servicerAddress));
}