copyWithWrapped method

ClientProvidedEnrichedTransaction copyWithWrapped({
  1. Wrapped<String>? id,
  2. Wrapped<String>? description,
  3. Wrapped<double>? amount,
  4. Wrapped<EnrichTransactionDirection?>? direction,
  5. Wrapped<String>? isoCurrencyCode,
  6. Wrapped<Enrichments>? enrichments,
})

Implementation

ClientProvidedEnrichedTransaction copyWithWrapped(
    {Wrapped<String>? id,
    Wrapped<String>? description,
    Wrapped<double>? amount,
    Wrapped<enums.EnrichTransactionDirection?>? direction,
    Wrapped<String>? isoCurrencyCode,
    Wrapped<Enrichments>? enrichments}) {
  return ClientProvidedEnrichedTransaction(
      id: (id != null ? id.value : this.id),
      description:
          (description != null ? description.value : this.description),
      amount: (amount != null ? amount.value : this.amount),
      direction: (direction != null ? direction.value : this.direction),
      isoCurrencyCode: (isoCurrencyCode != null
          ? isoCurrencyCode.value
          : this.isoCurrencyCode),
      enrichments:
          (enrichments != null ? enrichments.value : this.enrichments));
}