copyWithWrapped method

InvestmentsTransactionsGetResponse copyWithWrapped({
  1. Wrapped<Item>? item,
  2. Wrapped<List<AccountBase>>? accounts,
  3. Wrapped<List<Security>>? securities,
  4. Wrapped<List<InvestmentTransaction>>? investmentTransactions,
  5. Wrapped<int>? totalInvestmentTransactions,
  6. Wrapped<String>? requestId,
})

Implementation

InvestmentsTransactionsGetResponse copyWithWrapped(
    {Wrapped<Item>? item,
    Wrapped<List<AccountBase>>? accounts,
    Wrapped<List<Security>>? securities,
    Wrapped<List<InvestmentTransaction>>? investmentTransactions,
    Wrapped<int>? totalInvestmentTransactions,
    Wrapped<String>? requestId}) {
  return InvestmentsTransactionsGetResponse(
      item: (item != null ? item.value : this.item),
      accounts: (accounts != null ? accounts.value : this.accounts),
      securities: (securities != null ? securities.value : this.securities),
      investmentTransactions: (investmentTransactions != null
          ? investmentTransactions.value
          : this.investmentTransactions),
      totalInvestmentTransactions: (totalInvestmentTransactions != null
          ? totalInvestmentTransactions.value
          : this.totalInvestmentTransactions),
      requestId: (requestId != null ? requestId.value : this.requestId));
}