copyWith method

CreditPayStub copyWith({
  1. CreditPayStubDeductions? deductions,
  2. String? documentId,
  3. CreditDocumentMetadata? documentMetadata,
  4. CreditPayStubEarnings? earnings,
  5. CreditPayStubEmployee? employee,
  6. CreditPayStubEmployer? employer,
  7. CreditPayStubNetPay? netPay,
  8. PayStubPayPeriodDetails? payPeriodDetails,
})

Implementation

CreditPayStub copyWith(
    {CreditPayStubDeductions? deductions,
    String? documentId,
    CreditDocumentMetadata? documentMetadata,
    CreditPayStubEarnings? earnings,
    CreditPayStubEmployee? employee,
    CreditPayStubEmployer? employer,
    CreditPayStubNetPay? netPay,
    PayStubPayPeriodDetails? payPeriodDetails}) {
  return CreditPayStub(
      deductions: deductions ?? this.deductions,
      documentId: documentId ?? this.documentId,
      documentMetadata: documentMetadata ?? this.documentMetadata,
      earnings: earnings ?? this.earnings,
      employee: employee ?? this.employee,
      employer: employer ?? this.employer,
      netPay: netPay ?? this.netPay,
      payPeriodDetails: payPeriodDetails ?? this.payPeriodDetails);
}