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