CancelledNotification.toMCP constructor
Builds a CancelledNotification from a decoded MCP JSON map.
Implementation
factory CancelledNotification.toMCP(Map<String, Object?> map) {
return CancelledNotification(
params: CancelledNotificationParams.toMCP(
map['params'] as Map<String, Object?>,
),
);
}