toJson method

Map<String, dynamic> toJson()

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,
  };
}