toJson method
Implementation
Map<String, Object?> toJson() {
var accountId = this.accountId;
var groupId = this.groupId;
var groupname = this.groupname;
var projectId = this.projectId;
var projectRoleId = this.projectRoleId;
var rights = this.rights;
var type = this.type;
final json = <String, Object?>{};
if (accountId != null) {
json[r'accountId'] = accountId;
}
if (groupId != null) {
json[r'groupId'] = groupId;
}
if (groupname != null) {
json[r'groupname'] = groupname;
}
if (projectId != null) {
json[r'projectId'] = projectId;
}
if (projectRoleId != null) {
json[r'projectRoleId'] = projectRoleId;
}
if (rights != null) {
json[r'rights'] = rights;
}
json[r'type'] = type.value;
return json;
}