copyWithWrapped method

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

Implementation

TransactionBase copyWithWrapped(
    {Wrapped<enums.TransactionBaseTransactionType?>? 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 TransactionBase(
      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));
}