copyWithWrapped method
Enrichments
copyWithWrapped({
- Wrapped<
String?> ? merchantName, - Wrapped<
String?> ? website, - Wrapped<
String?> ? logoUrl, - Wrapped<
String?> ? checkNumber, - Wrapped<
PaymentChannel> ? paymentChannel, - Wrapped<
String?> ? legacyCategoryId, - Wrapped<
List< ? legacyCategory,String> ?> - Wrapped<
Location> ? location, - Wrapped<
PersonalFinanceCategory?> ? personalFinanceCategory, - Wrapped<
String> ? personalFinanceCategoryIconUrl, - Wrapped<
List< ? counterparties,Counterparty> ?>
Implementation
Enrichments copyWithWrapped(
{Wrapped<String?>? merchantName,
Wrapped<String?>? website,
Wrapped<String?>? logoUrl,
Wrapped<String?>? checkNumber,
Wrapped<enums.PaymentChannel>? paymentChannel,
Wrapped<String?>? legacyCategoryId,
Wrapped<List<String>?>? legacyCategory,
Wrapped<Location>? location,
Wrapped<PersonalFinanceCategory?>? personalFinanceCategory,
Wrapped<String>? personalFinanceCategoryIconUrl,
Wrapped<List<Counterparty>?>? counterparties}) {
return Enrichments(
merchantName:
(merchantName != null ? merchantName.value : this.merchantName),
website: (website != null ? website.value : this.website),
logoUrl: (logoUrl != null ? logoUrl.value : this.logoUrl),
checkNumber:
(checkNumber != null ? checkNumber.value : this.checkNumber),
paymentChannel: (paymentChannel != null
? paymentChannel.value
: this.paymentChannel),
legacyCategoryId: (legacyCategoryId != null
? legacyCategoryId.value
: this.legacyCategoryId),
legacyCategory: (legacyCategory != null
? legacyCategory.value
: this.legacyCategory),
location: (location != null ? location.value : this.location),
personalFinanceCategory: (personalFinanceCategory != null
? personalFinanceCategory.value
: this.personalFinanceCategory),
personalFinanceCategoryIconUrl: (personalFinanceCategoryIconUrl != null
? personalFinanceCategoryIconUrl.value
: this.personalFinanceCategoryIconUrl),
counterparties: (counterparties != null
? counterparties.value
: this.counterparties));
}