copyWithWrapped method

CreditSessionResults copyWithWrapped({
  1. Wrapped<List<CreditSessionItemAddResult>?>? itemAddResults,
  2. Wrapped<List<CreditSessionBankIncomeResult>?>? bankIncomeResults,
  3. Wrapped<List<CreditSessionPayrollIncomeResult>?>? payrollIncomeResults,
  4. Wrapped<CreditSessionDocumentIncomeResult?>? documentIncomeResults,
})

Implementation

CreditSessionResults copyWithWrapped(
    {Wrapped<List<CreditSessionItemAddResult>?>? itemAddResults,
    Wrapped<List<CreditSessionBankIncomeResult>?>? bankIncomeResults,
    Wrapped<List<CreditSessionPayrollIncomeResult>?>? payrollIncomeResults,
    Wrapped<CreditSessionDocumentIncomeResult?>? documentIncomeResults}) {
  return CreditSessionResults(
      itemAddResults: (itemAddResults != null
          ? itemAddResults.value
          : this.itemAddResults),
      bankIncomeResults: (bankIncomeResults != null
          ? bankIncomeResults.value
          : this.bankIncomeResults),
      payrollIncomeResults: (payrollIncomeResults != null
          ? payrollIncomeResults.value
          : this.payrollIncomeResults),
      documentIncomeResults: (documentIncomeResults != null
          ? documentIncomeResults.value
          : this.documentIncomeResults));
}