copyWithWrapped method
StudentLoan
copyWithWrapped({
- Wrapped<
String?> ? accountId, - Wrapped<
String?> ? accountNumber, - Wrapped<
List< ? disbursementDates,DateTime> ?> - 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,
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));
}