copyWithWrapped method

CreditPayStub copyWithWrapped({
  1. Wrapped<CreditPayStubDeductions>? deductions,
  2. Wrapped<String?>? documentId,
  3. Wrapped<CreditDocumentMetadata>? documentMetadata,
  4. Wrapped<CreditPayStubEarnings>? earnings,
  5. Wrapped<CreditPayStubEmployee>? employee,
  6. Wrapped<CreditPayStubEmployer>? employer,
  7. Wrapped<CreditPayStubNetPay>? netPay,
  8. 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));
}