toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.accountId != null) {
json[r'accountId'] = this.accountId;
} else {
json[r'accountId'] = null;
}
json[r'name'] = this.name;
if (this.messageListVisibility != null) {
json[r'messageListVisibility'] = this.messageListVisibility;
} else {
json[r'messageListVisibility'] = null;
}
if (this.labelListVisibility != null) {
json[r'labelListVisibility'] = this.labelListVisibility;
} else {
json[r'labelListVisibility'] = null;
}
if (this.color != null) {
json[r'color'] = this.color;
} else {
json[r'color'] = null;
}
return json;
}