copyWith method
CreditPayStub
copyWith({
- CreditPayStubDeductions? deductions,
- String? documentId,
- CreditDocumentMetadata? documentMetadata,
- CreditPayStubEarnings? earnings,
- CreditPayStubEmployee? employee,
- CreditPayStubEmployer? employer,
- CreditPayStubNetPay? netPay,
- 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);
}