copyWith method

ElicitationFormModeSession copyWith({
  1. Object? requestedSchema = _acpCopyWithAbsent,
  2. Object? sessionId = _acpCopyWithAbsent,
  3. Object? toolCallId = _acpCopyWithAbsent,
})

Implementation

ElicitationFormModeSession copyWith({
  Object? requestedSchema = _acpCopyWithAbsent,
  Object? sessionId = _acpCopyWithAbsent,
  Object? toolCallId = _acpCopyWithAbsent,
}) => ElicitationFormModeSession(
  requestedSchema: identical(requestedSchema, _acpCopyWithAbsent)
      ? this.requestedSchema
      : requestedSchema as ElicitationSchema,
  sessionId: identical(sessionId, _acpCopyWithAbsent)
      ? this.sessionId
      : sessionId as SessionId,
  toolCallId: identical(toolCallId, _acpCopyWithAbsent)
      ? this.toolCallId
      : toolCallId as ToolCallId?,
);