QueuingConfiguration.fromJson constructor

QueuingConfiguration.fromJson(
  1. Map<String, dynamic> json
)

Creates a QueuingConfiguration from JSON data.

Implementation

factory QueuingConfiguration.fromJson(Map<String, dynamic> json) {
  final tempHandSizeJson = json['handSize'];
  final tempQueueLengthLimitJson = json['queueLengthLimit'];
  final tempQueuesJson = json['queues'];

  final int? tempHandSize = tempHandSizeJson;
  final int? tempQueueLengthLimit = tempQueueLengthLimitJson;
  final int? tempQueues = tempQueuesJson;

  return QueuingConfiguration(
    handSize: tempHandSize,
    queueLengthLimit: tempQueueLengthLimit,
    queues: tempQueues,
  );
}