copyWithWrapped method

TransactionsSyncResponse copyWithWrapped({
  1. Wrapped<List<Transaction>>? added,
  2. Wrapped<List<Transaction>>? modified,
  3. Wrapped<List<RemovedTransaction>>? removed,
  4. Wrapped<String>? nextCursor,
  5. Wrapped<bool>? hasMore,
  6. Wrapped<String>? requestId,
})

Implementation

TransactionsSyncResponse copyWithWrapped(
    {Wrapped<List<Transaction>>? added,
    Wrapped<List<Transaction>>? modified,
    Wrapped<List<RemovedTransaction>>? removed,
    Wrapped<String>? nextCursor,
    Wrapped<bool>? hasMore,
    Wrapped<String>? requestId}) {
  return TransactionsSyncResponse(
      added: (added != null ? added.value : this.added),
      modified: (modified != null ? modified.value : this.modified),
      removed: (removed != null ? removed.value : this.removed),
      nextCursor: (nextCursor != null ? nextCursor.value : this.nextCursor),
      hasMore: (hasMore != null ? hasMore.value : this.hasMore),
      requestId: (requestId != null ? requestId.value : this.requestId));
}