copyWith method

CreateElicitationRequestForm copyWith({
  1. Object? message = _acpCopyWithAbsent,
  2. Object? meta = _acpCopyWithAbsent,
  3. Object? mode = _acpCopyWithAbsent,
  4. Object? requestedSchema = _acpCopyWithAbsent,
  5. Object? sessionId = _acpCopyWithAbsent,
  6. Object? toolCallId = _acpCopyWithAbsent,
  7. Object? requestId = _acpCopyWithAbsent,
})

Implementation

CreateElicitationRequestForm copyWith({
  Object? message = _acpCopyWithAbsent,
  Object? meta = _acpCopyWithAbsent,
  Object? mode = _acpCopyWithAbsent,
  Object? requestedSchema = _acpCopyWithAbsent,
  Object? sessionId = _acpCopyWithAbsent,
  Object? toolCallId = _acpCopyWithAbsent,
  Object? requestId = _acpCopyWithAbsent,
}) => CreateElicitationRequestForm(
  message: identical(message, _acpCopyWithAbsent)
      ? this.message
      : message as String,
  meta: identical(meta, _acpCopyWithAbsent) ? this.meta : meta as AcpJsonMap?,
  mode: identical(mode, _acpCopyWithAbsent) ? this.mode : mode as String,
  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?,
  requestId: identical(requestId, _acpCopyWithAbsent)
      ? this.requestId
      : requestId as RequestId?,
);