toJson method
Implementation
Map<String, Object?> toJson() {
var description = this.description;
var id = this.id;
var name = this.name;
var scope = this.scope;
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();
}
return json;
}