copyWith method

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

Implementation

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