toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
json[r'name'] = this.name;
json[r'type'] = this.type;
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;
}