copyWithWrapped method

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

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));
}