toJson method
Implementation
Map<String, Object?> toJson() {
var emailAddress = this.emailAddress;
var expand = this.expand;
var field = this.field;
var group = this.group;
var id = this.id;
var notificationType = this.notificationType;
var parameter = this.parameter;
var projectRole = this.projectRole;
var recipient = this.recipient;
var user = this.user;
final json = <String, Object?>{};
if (emailAddress != null) {
json[r'emailAddress'] = emailAddress;
}
if (expand != null) {
json[r'expand'] = expand;
}
if (field != null) {
json[r'field'] = field.toJson();
}
if (group != null) {
json[r'group'] = group.toJson();
}
if (id != null) {
json[r'id'] = id;
}
if (notificationType != null) {
json[r'notificationType'] = notificationType.value;
}
if (parameter != null) {
json[r'parameter'] = parameter;
}
if (projectRole != null) {
json[r'projectRole'] = projectRole.toJson();
}
if (recipient != null) {
json[r'recipient'] = recipient;
}
if (user != null) {
json[r'user'] = user.toJson();
}
return json;
}