JSONRPCResultResponse.toMCP constructor

JSONRPCResultResponse.toMCP(
  1. Map<String, Object?> 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?>),
  );
}