ToolCallContentTerminal.fromMap constructor

ToolCallContentTerminal.fromMap(
  1. Map<Object?, Object?> value
)

Implementation

factory ToolCallContentTerminal.fromMap(Map<Object?, Object?> value) {
  final decoded = ToolCallContent.fromMap(value);
  if (decoded is! ToolCallContentTerminal) {
    throw const AcpWireDecodeException('Expected ToolCallContentTerminal.');
  }
  return decoded;
}