toJson method
Implementation
Map<String, Object?> toJson() {
var description = this.description;
var id = this.id;
var name = this.name;
var scope = this.scope;
var statusCategory = this.statusCategory;
var usages = this.usages;
var workflowUsages = this.workflowUsages;
final json = <String, Object?>{};
if (description != null) {
json[r'description'] = description;
}
if (id != null) {
json[r'id'] = id;
}
if (name != null) {
json[r'name'] = name;
}
if (scope != null) {
json[r'scope'] = scope.toJson();
}
if (statusCategory != null) {
json[r'statusCategory'] = statusCategory.value;
}
json[r'usages'] = usages.map((i) => i.toJson()).toList();
json[r'workflowUsages'] = workflowUsages.map((i) => i.toJson()).toList();
return json;
}