toJson method
Implementation
Map<String, Object?> toJson() {
var group = this.group;
var id = this.id;
var project = this.project;
var role = this.role;
var type = this.type;
var user = this.user;
final json = <String, Object?>{};
if (group != null) {
json[r'group'] = group.toJson();
}
if (id != null) {
json[r'id'] = id;
}
if (project != null) {
json[r'project'] = project.toJson();
}
if (role != null) {
json[r'role'] = role.toJson();
}
json[r'type'] = type.value;
if (user != null) {
json[r'user'] = user.toJson();
}
return json;
}