JSONRPCResultResponse.toMCP constructor
Builds a JSONRPCResultResponse from a decoded MCP JSON map.
Implementation
factory JSONRPCResultResponse.toMCP(Map<String, Object?> map) {
return JSONRPCResultResponse(
jsonrpc: map['jsonrpc'] as String,
id: map['id']?.toString() ?? '-1',
result: Result.toMCP(map['result'] as Map<String, Object?>),
);
}