toJson method
Implementation
Map<String, Object?> toJson() {
var avatarId = this.avatarId;
var description = this.description;
var entityId = this.entityId;
var hierarchyLevel = this.hierarchyLevel;
var iconUrl = this.iconUrl;
var id = this.id;
var name = this.name;
var scope = this.scope;
var self = this.self;
var subtask = this.subtask;
final json = <String, Object?>{};
if (avatarId != null) {
json[r'avatarId'] = avatarId;
}
if (description != null) {
json[r'description'] = description;
}
if (entityId != null) {
json[r'entityId'] = entityId;
}
if (hierarchyLevel != null) {
json[r'hierarchyLevel'] = hierarchyLevel;
}
if (iconUrl != null) {
json[r'iconUrl'] = iconUrl;
}
if (id != null) {
json[r'id'] = id;
}
if (name != null) {
json[r'name'] = name;
}
if (scope != null) {
json[r'scope'] = scope.toJson();
}
if (self != null) {
json[r'self'] = self;
}
json[r'subtask'] = subtask;
return json;
}