copyWithWrapped method

PayrollIncomeObject copyWithWrapped({
  1. Wrapped<String?>? accountId,
  2. Wrapped<List<CreditPayStub>>? payStubs,
  3. Wrapped<List<CreditW2>>? w2s,
  4. Wrapped<List<Credit1099>>? form1099s,
})

Implementation

PayrollIncomeObject copyWithWrapped(
    {Wrapped<String?>? accountId,
    Wrapped<List<CreditPayStub>>? payStubs,
    Wrapped<List<CreditW2>>? w2s,
    Wrapped<List<Credit1099>>? form1099s}) {
  return PayrollIncomeObject(
      accountId: (accountId != null ? accountId.value : this.accountId),
      payStubs: (payStubs != null ? payStubs.value : this.payStubs),
      w2s: (w2s != null ? w2s.value : this.w2s),
      form1099s: (form1099s != null ? form1099s.value : this.form1099s));
}