copyWithWrapped method
CreditPayStub
copyWithWrapped({
- Wrapped<
CreditPayStubDeductions> ? deductions, - Wrapped<
String?> ? documentId, - Wrapped<
CreditDocumentMetadata> ? documentMetadata, - Wrapped<
CreditPayStubEarnings> ? earnings, - Wrapped<
CreditPayStubEmployee> ? employee, - Wrapped<
CreditPayStubEmployer> ? employer, - Wrapped<
CreditPayStubNetPay> ? netPay, - Wrapped<
PayStubPayPeriodDetails> ? payPeriodDetails,
Implementation
CreditPayStub copyWithWrapped(
{Wrapped<CreditPayStubDeductions>? deductions,
Wrapped<String?>? documentId,
Wrapped<CreditDocumentMetadata>? documentMetadata,
Wrapped<CreditPayStubEarnings>? earnings,
Wrapped<CreditPayStubEmployee>? employee,
Wrapped<CreditPayStubEmployer>? employer,
Wrapped<CreditPayStubNetPay>? netPay,
Wrapped<PayStubPayPeriodDetails>? payPeriodDetails}) {
return CreditPayStub(
deductions: (deductions != null ? deductions.value : this.deductions),
documentId: (documentId != null ? documentId.value : this.documentId),
documentMetadata: (documentMetadata != null
? documentMetadata.value
: this.documentMetadata),
earnings: (earnings != null ? earnings.value : this.earnings),
employee: (employee != null ? employee.value : this.employee),
employer: (employer != null ? employer.value : this.employer),
netPay: (netPay != null ? netPay.value : this.netPay),
payPeriodDetails: (payPeriodDetails != null
? payPeriodDetails.value
: this.payPeriodDetails));
}