copyWith method

Enrichments copyWith({
  1. String? merchantName,
  2. String? website,
  3. String? logoUrl,
  4. String? checkNumber,
  5. PaymentChannel? paymentChannel,
  6. String? legacyCategoryId,
  7. List<String>? legacyCategory,
  8. Location? location,
  9. PersonalFinanceCategory? personalFinanceCategory,
  10. String? personalFinanceCategoryIconUrl,
  11. List<Counterparty>? counterparties,
})

Implementation

Enrichments copyWith(
    {String? merchantName,
    String? website,
    String? logoUrl,
    String? checkNumber,
    enums.PaymentChannel? paymentChannel,
    String? legacyCategoryId,
    List<String>? legacyCategory,
    Location? location,
    PersonalFinanceCategory? personalFinanceCategory,
    String? personalFinanceCategoryIconUrl,
    List<Counterparty>? counterparties}) {
  return Enrichments(
      merchantName: merchantName ?? this.merchantName,
      website: website ?? this.website,
      logoUrl: logoUrl ?? this.logoUrl,
      checkNumber: checkNumber ?? this.checkNumber,
      paymentChannel: paymentChannel ?? this.paymentChannel,
      legacyCategoryId: legacyCategoryId ?? this.legacyCategoryId,
      legacyCategory: legacyCategory ?? this.legacyCategory,
      location: location ?? this.location,
      personalFinanceCategory:
          personalFinanceCategory ?? this.personalFinanceCategory,
      personalFinanceCategoryIconUrl: personalFinanceCategoryIconUrl ??
          this.personalFinanceCategoryIconUrl,
      counterparties: counterparties ?? this.counterparties);
}