toJson method
Implementation
Map<String, Object?> toJson() {
var description = this.description;
var hierarchyLevel = this.hierarchyLevel;
var name = this.name;
var type = this.type;
final json = <String, Object?>{};
if (description != null) {
json[r'description'] = description;
}
if (hierarchyLevel != null) {
json[r'hierarchyLevel'] = hierarchyLevel;
}
json[r'name'] = name;
if (type != null) {
json[r'type'] = type.value;
}
return json;
}