copyWith method

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

Implementation

ClientProvidedEnhancedTransaction copyWith(
    {String? id,
    String? description,
    double? amount,
    String? isoCurrencyCode,
    Enhancements? enhancements}) {
  return ClientProvidedEnhancedTransaction(
      id: id ?? this.id,
      description: description ?? this.description,
      amount: amount ?? this.amount,
      isoCurrencyCode: isoCurrencyCode ?? this.isoCurrencyCode,
      enhancements: enhancements ?? this.enhancements);
}