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