toJson method

Map<String, Object> toJson()

Converts a QueuingConfiguration instance to JSON data.

Implementation

Map<String, Object> toJson() {
  final jsonData = <String, Object>{};

  if (handSize != null) {
    jsonData['handSize'] = handSize!;
  }
  if (queueLengthLimit != null) {
    jsonData['queueLengthLimit'] = queueLengthLimit!;
  }
  if (queues != null) {
    jsonData['queues'] = queues!;
  }

  return jsonData;
}