SubscriptionFilter.fromJson constructor
SubscriptionFilter.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SubscriptionFilter.fromJson(Map<String, dynamic> json) {
final subs = json['resourceSubscriptions'];
return SubscriptionFilter(
toolsListChanged: json['toolsListChanged'] == true,
promptsListChanged: json['promptsListChanged'] == true,
resourcesListChanged: json['resourcesListChanged'] == true,
resourceSubscriptions: subs is List
? subs.map((e) => e.toString()).toList(growable: false)
: const <String>[],
);
}