toJson method
Implementation
Map<String, dynamic> toJson() {
final channels = this.channels;
final queues = this.queues;
return {
if (channels != null)
'Channels': channels.map((e) => e.toValue()).toList(),
if (queues != null) 'Queues': queues,
};
}