CallToolResultResponse.toMCP constructor
Implementation
factory CallToolResultResponse.toMCP(Map<String, Object?> map) {
return CallToolResultResponse(
id: map['id']?.toString() ?? '-1',
result: CallToolResultOutcome.toMCP(
map['result'] as Map<String, Object?>,
),
);
}