copyWithWrapped method
Enhancements
copyWithWrapped({
- Wrapped<
String?> ? merchantName, - Wrapped<
String?> ? website, - Wrapped<
String?> ? logoUrl, - Wrapped<
String?> ? checkNumber, - Wrapped<
PaymentChannel> ? paymentChannel, - Wrapped<
String?> ? categoryId, - Wrapped<
List< ? category,String> > - Wrapped<
Location> ? location, - Wrapped<
PersonalFinanceCategory?> ? personalFinanceCategory, - Wrapped<
String?> ? personalFinanceCategoryIconUrl, - Wrapped<
List< ? counterparties,Counterparty> ?>
Implementation
Enhancements copyWithWrapped(
{Wrapped<String?>? merchantName,
Wrapped<String?>? website,
Wrapped<String?>? logoUrl,
Wrapped<String?>? checkNumber,
Wrapped<enums.PaymentChannel>? paymentChannel,
Wrapped<String?>? categoryId,
Wrapped<List<String>>? category,
Wrapped<Location>? location,
Wrapped<PersonalFinanceCategory?>? personalFinanceCategory,
Wrapped<String?>? personalFinanceCategoryIconUrl,
Wrapped<List<Counterparty>?>? counterparties}) {
return Enhancements(
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),
categoryId: (categoryId != null ? categoryId.value : this.categoryId),
category: (category != null ? category.value : this.category),
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));
}