SubscriptionFilter.toMCP constructor
Implementation
factory SubscriptionFilter.toMCP(Map<String, Object?> map) {
return SubscriptionFilter(
toolsListChanged: map['toolsListChanged'] as bool?,
promptsListChanged: map['promptsListChanged'] as bool?,
resourcesListChanged: map['resourcesListChanged'] as bool?,
resourceSubscriptions:
(map['resourceSubscriptions'] as List<dynamic>?)?.cast<String>(),
);
}