copyWith method
Enrichments
copyWith({
- String? merchantName,
- String? website,
- String? logoUrl,
- String? checkNumber,
- PaymentChannel? paymentChannel,
- String? legacyCategoryId,
- List<
String> ? legacyCategory, - Location? location,
- PersonalFinanceCategory? personalFinanceCategory,
- String? personalFinanceCategoryIconUrl,
- 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);
}