ConversationMcpApprovalResponseItem class

An MCP approval response item in a conversation.

Inheritance
Annotations
  • @immutable

Constructors

ConversationMcpApprovalResponseItem({required String id, String? approvalRequestId, bool? approved})
Creates a ConversationMcpApprovalResponseItem.
const
ConversationMcpApprovalResponseItem.fromJson(Map<String, dynamic> json)
Creates a ConversationMcpApprovalResponseItem from JSON.
factory

Properties

approvalRequestId String?
The approval request ID.
final
approved bool?
Whether the request was approved.
final
hashCode int
The hash code for this object.
no setteroverride
id String
Unique identifier.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override