copyWithWrapped method

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

Implementation

PaystubOverride copyWithWrapped(
    {Wrapped<PaystubOverrideEmployer?>? employer,
    Wrapped<PaystubOverrideEmployee?>? employee,
    Wrapped<List<IncomeBreakdown>?>? incomeBreakdown,
    Wrapped<PayPeriodDetails?>? payPeriodDetails}) {
  return PaystubOverride(
      employer: (employer != null ? employer.value : this.employer),
      employee: (employee != null ? employee.value : this.employee),
      incomeBreakdown: (incomeBreakdown != null
          ? incomeBreakdown.value
          : this.incomeBreakdown),
      payPeriodDetails: (payPeriodDetails != null
          ? payPeriodDetails.value
          : this.payPeriodDetails));
}