MTQueue.fromJson constructor

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

Implementation

factory MTQueue.fromJson(Map<String, dynamic> json) {
  return MTQueue(
    queueNum: json["queue_num"],
    queueName: json["queue_name"],
    queueDisplay: json["queue_display"],
    maxWaitTime: json["max_wait_time"],
    musicHoldUrl: json['music_on_hold_url'] ?? '',
    musicTimeOutUrl: json['music_on_timeout_url'] ?? '',
  );
}