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