copyWithWrapped method

SubTransaction copyWithWrapped({
  1. Wrapped<String>? id,
  2. Wrapped<String>? transactionId,
  3. Wrapped<num>? amount,
  4. Wrapped<String?>? memo,
  5. Wrapped<String?>? payeeId,
  6. Wrapped<String?>? payeeName,
  7. Wrapped<String?>? categoryId,
  8. Wrapped<String?>? categoryName,
  9. Wrapped<String?>? transferAccountId,
  10. Wrapped<String?>? transferTransactionId,
  11. Wrapped<bool>? deleted,
})

Implementation

SubTransaction copyWithWrapped(
    {Wrapped<String>? id,
    Wrapped<String>? transactionId,
    Wrapped<num>? amount,
    Wrapped<String?>? memo,
    Wrapped<String?>? payeeId,
    Wrapped<String?>? payeeName,
    Wrapped<String?>? categoryId,
    Wrapped<String?>? categoryName,
    Wrapped<String?>? transferAccountId,
    Wrapped<String?>? transferTransactionId,
    Wrapped<bool>? deleted}) {
  return SubTransaction(
      id: (id != null ? id.value : this.id),
      transactionId:
          (transactionId != null ? transactionId.value : this.transactionId),
      amount: (amount != null ? amount.value : this.amount),
      memo: (memo != null ? memo.value : this.memo),
      payeeId: (payeeId != null ? payeeId.value : this.payeeId),
      payeeName: (payeeName != null ? payeeName.value : this.payeeName),
      categoryId: (categoryId != null ? categoryId.value : this.categoryId),
      categoryName:
          (categoryName != null ? categoryName.value : this.categoryName),
      transferAccountId: (transferAccountId != null
          ? transferAccountId.value
          : this.transferAccountId),
      transferTransactionId: (transferTransactionId != null
          ? transferTransactionId.value
          : this.transferTransactionId),
      deleted: (deleted != null ? deleted.value : this.deleted));
}