copyWith method

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

Implementation

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