copyWith method

PaystubOverride copyWith({
  1. PaystubOverrideEmployer? employer,
  2. PaystubOverrideEmployee? employee,
  3. List<IncomeBreakdown>? incomeBreakdown,
  4. PayPeriodDetails? payPeriodDetails,
})

Implementation

PaystubOverride copyWith(
    {PaystubOverrideEmployer? employer,
    PaystubOverrideEmployee? employee,
    List<IncomeBreakdown>? incomeBreakdown,
    PayPeriodDetails? payPeriodDetails}) {
  return PaystubOverride(
      employer: employer ?? this.employer,
      employee: employee ?? this.employee,
      incomeBreakdown: incomeBreakdown ?? this.incomeBreakdown,
      payPeriodDetails: payPeriodDetails ?? this.payPeriodDetails);
}