copyWithWrapped method

OverrideAccounts copyWithWrapped({
  1. Wrapped<OverrideAccountType>? type,
  2. Wrapped<AccountSubtype?>? subtype,
  3. Wrapped<double>? startingBalance,
  4. Wrapped<double>? forceAvailableBalance,
  5. Wrapped<String>? currency,
  6. Wrapped<Meta>? meta,
  7. Wrapped<Numbers>? numbers,
  8. Wrapped<List<TransactionOverride>>? transactions,
  9. Wrapped<HoldingsOverride?>? holdings,
  10. Wrapped<InvestmentsTransactionsOverride?>? investmentTransactions,
  11. Wrapped<OwnerOverride>? identity,
  12. Wrapped<LiabilityOverride>? liability,
  13. Wrapped<InflowModel>? inflowModel,
  14. Wrapped<IncomeOverride?>? income,
})

Implementation

OverrideAccounts copyWithWrapped(
    {Wrapped<enums.OverrideAccountType>? type,
    Wrapped<enums.AccountSubtype?>? subtype,
    Wrapped<double>? startingBalance,
    Wrapped<double>? forceAvailableBalance,
    Wrapped<String>? currency,
    Wrapped<Meta>? meta,
    Wrapped<Numbers>? numbers,
    Wrapped<List<TransactionOverride>>? transactions,
    Wrapped<HoldingsOverride?>? holdings,
    Wrapped<InvestmentsTransactionsOverride?>? investmentTransactions,
    Wrapped<OwnerOverride>? identity,
    Wrapped<LiabilityOverride>? liability,
    Wrapped<InflowModel>? inflowModel,
    Wrapped<IncomeOverride?>? income}) {
  return OverrideAccounts(
      type: (type != null ? type.value : this.type),
      subtype: (subtype != null ? subtype.value : this.subtype),
      startingBalance: (startingBalance != null
          ? startingBalance.value
          : this.startingBalance),
      forceAvailableBalance: (forceAvailableBalance != null
          ? forceAvailableBalance.value
          : this.forceAvailableBalance),
      currency: (currency != null ? currency.value : this.currency),
      meta: (meta != null ? meta.value : this.meta),
      numbers: (numbers != null ? numbers.value : this.numbers),
      transactions:
          (transactions != null ? transactions.value : this.transactions),
      holdings: (holdings != null ? holdings.value : this.holdings),
      investmentTransactions: (investmentTransactions != null
          ? investmentTransactions.value
          : this.investmentTransactions),
      identity: (identity != null ? identity.value : this.identity),
      liability: (liability != null ? liability.value : this.liability),
      inflowModel:
          (inflowModel != null ? inflowModel.value : this.inflowModel),
      income: (income != null ? income.value : this.income));
}