copyWith method
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,
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);
}