JSONRPCNotification.toMCP constructor

JSONRPCNotification.toMCP(
  1. Map<String, Object?> map
)

Implementation

factory JSONRPCNotification.toMCP(Map<String, Object?> map) {
  return JSONRPCNotification(
    jsonrpc: map['jsonrpc'] as String,
    method: map['method'] as String,
    params: map['params'] as Map<String, Object?>?,
  );
}