copyWithWrapped method

AssetReportTransaction copyWithWrapped({
  1. Wrapped<String?>? dateTransacted,
  2. Wrapped<CreditCategory?>? creditCategory,
  3. Wrapped<AssetReportTransactionTransactionType?>? transactionType,
  4. Wrapped<String?>? pendingTransactionId,
  5. Wrapped<String?>? categoryId,
  6. Wrapped<List<String>?>? category,
  7. Wrapped<Location?>? location,
  8. Wrapped<PaymentMeta?>? paymentMeta,
  9. Wrapped<String?>? accountOwner,
  10. Wrapped<String?>? name,
  11. Wrapped<String?>? originalDescription,
  12. Wrapped<String>? accountId,
  13. Wrapped<double>? amount,
  14. Wrapped<String?>? isoCurrencyCode,
  15. Wrapped<String?>? unofficialCurrencyCode,
  16. Wrapped<DateTime>? date,
  17. Wrapped<bool>? pending,
  18. Wrapped<String>? transactionId,
  19. Wrapped<String?>? merchantName,
  20. Wrapped<String?>? checkNumber,
})

Implementation

AssetReportTransaction copyWithWrapped(
    {Wrapped<String?>? dateTransacted,
    Wrapped<CreditCategory?>? creditCategory,
    Wrapped<enums.AssetReportTransactionTransactionType?>? transactionType,
    Wrapped<String?>? pendingTransactionId,
    Wrapped<String?>? categoryId,
    Wrapped<List<String>?>? category,
    Wrapped<Location?>? location,
    Wrapped<PaymentMeta?>? paymentMeta,
    Wrapped<String?>? accountOwner,
    Wrapped<String?>? name,
    Wrapped<String?>? originalDescription,
    Wrapped<String>? accountId,
    Wrapped<double>? amount,
    Wrapped<String?>? isoCurrencyCode,
    Wrapped<String?>? unofficialCurrencyCode,
    Wrapped<DateTime>? date,
    Wrapped<bool>? pending,
    Wrapped<String>? transactionId,
    Wrapped<String?>? merchantName,
    Wrapped<String?>? checkNumber}) {
  return AssetReportTransaction(
      dateTransacted: (dateTransacted != null
          ? dateTransacted.value
          : this.dateTransacted),
      creditCategory: (creditCategory != null
          ? creditCategory.value
          : this.creditCategory),
      transactionType: (transactionType != null
          ? transactionType.value
          : this.transactionType),
      pendingTransactionId: (pendingTransactionId != null
          ? pendingTransactionId.value
          : this.pendingTransactionId),
      categoryId: (categoryId != null ? categoryId.value : this.categoryId),
      category: (category != null ? category.value : this.category),
      location: (location != null ? location.value : this.location),
      paymentMeta:
          (paymentMeta != null ? paymentMeta.value : this.paymentMeta),
      accountOwner:
          (accountOwner != null ? accountOwner.value : this.accountOwner),
      name: (name != null ? name.value : this.name),
      originalDescription: (originalDescription != null
          ? originalDescription.value
          : this.originalDescription),
      accountId: (accountId != null ? accountId.value : this.accountId),
      amount: (amount != null ? amount.value : this.amount),
      isoCurrencyCode: (isoCurrencyCode != null
          ? isoCurrencyCode.value
          : this.isoCurrencyCode),
      unofficialCurrencyCode: (unofficialCurrencyCode != null
          ? unofficialCurrencyCode.value
          : this.unofficialCurrencyCode),
      date: (date != null ? date.value : this.date),
      pending: (pending != null ? pending.value : this.pending),
      transactionId:
          (transactionId != null ? transactionId.value : this.transactionId),
      merchantName:
          (merchantName != null ? merchantName.value : this.merchantName),
      checkNumber:
          (checkNumber != null ? checkNumber.value : this.checkNumber));
}