toJson method
Implementation
Map<String, Object?> toJson() {
var connectRules = this.connectRules;
var editorScope = this.editorScope;
var forgeRules = this.forgeRules;
var projectTypes = this.projectTypes;
var systemRules = this.systemRules;
var triggerRules = this.triggerRules;
final json = <String, Object?>{};
json[r'connectRules'] = connectRules.map((i) => i.toJson()).toList();
if (editorScope != null) {
json[r'editorScope'] = editorScope.value;
}
json[r'forgeRules'] = forgeRules.map((i) => i.toJson()).toList();
json[r'projectTypes'] = projectTypes.map((i) => i.value).toList();
json[r'systemRules'] = systemRules.map((i) => i.toJson()).toList();
json[r'triggerRules'] = triggerRules.map((i) => i.toJson()).toList();
return json;
}