copyWith method

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

Implementation

ClientProvidedEnrichedTransaction copyWith(
    {String? id,
    String? description,
    double? amount,
    enums.EnrichTransactionDirection? direction,
    String? isoCurrencyCode,
    Enrichments? enrichments}) {
  return ClientProvidedEnrichedTransaction(
      id: id ?? this.id,
      description: description ?? this.description,
      amount: amount ?? this.amount,
      direction: direction ?? this.direction,
      isoCurrencyCode: isoCurrencyCode ?? this.isoCurrencyCode,
      enrichments: enrichments ?? this.enrichments);
}