copyWithWrapped method

HybridTransaction copyWithWrapped({
  1. Wrapped<HybridTransactionType>? type,
  2. Wrapped<String?>? parentTransactionId,
  3. Wrapped<String>? accountName,
  4. Wrapped<String?>? payeeName,
  5. Wrapped<String?>? categoryName,
  6. Wrapped<String>? id,
  7. Wrapped<DateTime>? date,
  8. Wrapped<num>? amount,
  9. Wrapped<String?>? memo,
  10. Wrapped<HybridTransactionCleared>? cleared,
  11. Wrapped<bool>? approved,
  12. Wrapped<HybridTransactionFlagColor?>? flagColor,
  13. Wrapped<String>? accountId,
  14. Wrapped<String?>? payeeId,
  15. Wrapped<String?>? categoryId,
  16. Wrapped<String?>? transferAccountId,
  17. Wrapped<String?>? transferTransactionId,
  18. Wrapped<String?>? matchedTransactionId,
  19. Wrapped<String?>? importId,
  20. Wrapped<String?>? importPayeeName,
  21. Wrapped<String?>? importPayeeNameOriginal,
  22. Wrapped<bool>? deleted,
})

Implementation

HybridTransaction copyWithWrapped(
    {Wrapped<enums.HybridTransactionType>? type,
    Wrapped<String?>? parentTransactionId,
    Wrapped<String>? accountName,
    Wrapped<String?>? payeeName,
    Wrapped<String?>? categoryName,
    Wrapped<String>? id,
    Wrapped<DateTime>? date,
    Wrapped<num>? amount,
    Wrapped<String?>? memo,
    Wrapped<enums.HybridTransactionCleared>? cleared,
    Wrapped<bool>? approved,
    Wrapped<enums.HybridTransactionFlagColor?>? flagColor,
    Wrapped<String>? accountId,
    Wrapped<String?>? payeeId,
    Wrapped<String?>? categoryId,
    Wrapped<String?>? transferAccountId,
    Wrapped<String?>? transferTransactionId,
    Wrapped<String?>? matchedTransactionId,
    Wrapped<String?>? importId,
    Wrapped<String?>? importPayeeName,
    Wrapped<String?>? importPayeeNameOriginal,
    Wrapped<bool>? deleted}) {
  return HybridTransaction(
      type: (type != null ? type.value : this.type),
      parentTransactionId: (parentTransactionId != null
          ? parentTransactionId.value
          : this.parentTransactionId),
      accountName:
          (accountName != null ? accountName.value : this.accountName),
      payeeName: (payeeName != null ? payeeName.value : this.payeeName),
      categoryName:
          (categoryName != null ? categoryName.value : this.categoryName),
      id: (id != null ? id.value : this.id),
      date: (date != null ? date.value : this.date),
      amount: (amount != null ? amount.value : this.amount),
      memo: (memo != null ? memo.value : this.memo),
      cleared: (cleared != null ? cleared.value : this.cleared),
      approved: (approved != null ? approved.value : this.approved),
      flagColor: (flagColor != null ? flagColor.value : this.flagColor),
      accountId: (accountId != null ? accountId.value : this.accountId),
      payeeId: (payeeId != null ? payeeId.value : this.payeeId),
      categoryId: (categoryId != null ? categoryId.value : this.categoryId),
      transferAccountId: (transferAccountId != null
          ? transferAccountId.value
          : this.transferAccountId),
      transferTransactionId: (transferTransactionId != null
          ? transferTransactionId.value
          : this.transferTransactionId),
      matchedTransactionId: (matchedTransactionId != null
          ? matchedTransactionId.value
          : this.matchedTransactionId),
      importId: (importId != null ? importId.value : this.importId),
      importPayeeName: (importPayeeName != null
          ? importPayeeName.value
          : this.importPayeeName),
      importPayeeNameOriginal: (importPayeeNameOriginal != null
          ? importPayeeNameOriginal.value
          : this.importPayeeNameOriginal),
      deleted: (deleted != null ? deleted.value : this.deleted));
}