copyWithWrapped method

ClientProvidedEnhancedTransaction copyWithWrapped({
  1. Wrapped<String>? id,
  2. Wrapped<String>? description,
  3. Wrapped<double>? amount,
  4. Wrapped<String>? isoCurrencyCode,
  5. Wrapped<Enhancements>? enhancements,
})

Implementation

ClientProvidedEnhancedTransaction copyWithWrapped(
    {Wrapped<String>? id,
    Wrapped<String>? description,
    Wrapped<double>? amount,
    Wrapped<String>? isoCurrencyCode,
    Wrapped<Enhancements>? enhancements}) {
  return ClientProvidedEnhancedTransaction(
      id: (id != null ? id.value : this.id),
      description:
          (description != null ? description.value : this.description),
      amount: (amount != null ? amount.value : this.amount),
      isoCurrencyCode: (isoCurrencyCode != null
          ? isoCurrencyCode.value
          : this.isoCurrencyCode),
      enhancements:
          (enhancements != null ? enhancements.value : this.enhancements));
}