copyWith method

SessionUpdateToolCall copyWith({
  1. Object? sessionUpdate = _acpCopyWithAbsent,
  2. Object? toolCallId = _acpCopyWithAbsent,
  3. Object? title = _acpCopyWithAbsent,
  4. Object? kind = _acpCopyWithAbsent,
  5. Object? status = _acpCopyWithAbsent,
  6. Object? content = _acpCopyWithAbsent,
  7. Object? locations = _acpCopyWithAbsent,
  8. Object? rawInput = _acpCopyWithAbsent,
  9. Object? rawOutput = _acpCopyWithAbsent,
  10. Object? meta = _acpCopyWithAbsent,
})

Implementation

SessionUpdateToolCall copyWith({
  Object? sessionUpdate = _acpCopyWithAbsent,
  Object? toolCallId = _acpCopyWithAbsent,
  Object? title = _acpCopyWithAbsent,
  Object? kind = _acpCopyWithAbsent,
  Object? status = _acpCopyWithAbsent,
  Object? content = _acpCopyWithAbsent,
  Object? locations = _acpCopyWithAbsent,
  Object? rawInput = _acpCopyWithAbsent,
  Object? rawOutput = _acpCopyWithAbsent,
  Object? meta = _acpCopyWithAbsent,
}) => SessionUpdateToolCall(
  sessionUpdate: identical(sessionUpdate, _acpCopyWithAbsent)
      ? this.sessionUpdate
      : sessionUpdate as String,
  toolCallId: identical(toolCallId, _acpCopyWithAbsent)
      ? this.toolCallId
      : toolCallId as ToolCallId,
  title: identical(title, _acpCopyWithAbsent) ? this.title : title as String,
  kind: identical(kind, _acpCopyWithAbsent) ? this.kind : kind as ToolKind?,
  status: identical(status, _acpCopyWithAbsent)
      ? this.status
      : status as ToolCallStatus?,
  content: identical(content, _acpCopyWithAbsent)
      ? this.content
      : content as List<ToolCallContent>?,
  locations: identical(locations, _acpCopyWithAbsent)
      ? this.locations
      : locations as List<ToolCallLocation>?,
  rawInput: identical(rawInput, _acpCopyWithAbsent)
      ? this.rawInput
      : rawInput as Object?,
  rawOutput: identical(rawOutput, _acpCopyWithAbsent)
      ? this.rawOutput
      : rawOutput as Object?,
  meta: identical(meta, _acpCopyWithAbsent) ? this.meta : meta as AcpJsonMap?,
);