toJson method
Implementation
Map<String, Object?> toJson() {
var type = this.type;
var displayName = this.displayName;
var operations = this.operations;
var username = this.username;
var userKey = this.userKey;
var accountId = this.accountId;
var accountType = this.accountType;
var externalCollaborator = this.externalCollaborator;
var isExternalCollaborator = this.isExternalCollaborator;
var publicName = this.publicName;
final json = <String, Object?>{};
json[r'type'] = type.value;
json[r'displayName'] = displayName;
json[r'operations'] = operations;
if (username != null) {
json[r'username'] = username;
}
if (userKey != null) {
json[r'userKey'] = userKey;
}
if (accountId != null) {
json[r'accountId'] = accountId;
}
if (accountType != null) {
json[r'accountType'] = accountType;
}
json[r'externalCollaborator'] = externalCollaborator;
json[r'isExternalCollaborator'] = isExternalCollaborator;
if (publicName != null) {
json[r'publicName'] = publicName;
}
return json;
}