Shared improved with rules

This commit is contained in:
mr
2024-11-19 16:16:53 +01:00
parent 06b13853db
commit d522a44029
2 changed files with 18 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ class CollaborativeArea extends SerializerDeserializer<CollaborativeArea> {
List<Workspace> workspaces = [];
List<Workflow> workflows = [];
List<Peer> peers = [];
List<Rule> rules = [];
List<dynamic> rules = [];
CollaborativeAreaRule? rule;
CollaborativeArea(
@@ -85,7 +85,7 @@ class CollaborativeArea extends SerializerDeserializer<CollaborativeArea> {
workspaces: json.containsKey("shared_workspaces") ? fromListJson(json["shared_workspaces"], Workspace()) : [],
workflows: json.containsKey("shared_workflows") ? fromListJson(json["shared_workflows"], Workflow()) : [],
peers: json.containsKey("shared_peers") ? fromListJson(json["shared_peers"], Peer()) : [],
rules: json.containsKey("shared_rules") ? fromListJson(json["shared_rules"], Rule()) : [],
rules: json.containsKey("rules") ? json["rules"] : [],
);
}
@override