toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final priority = this.priority;
  final queue = this.queue;
  final waitMinutes = this.waitMinutes;
  return {
    if (priority != null) 'priority': priority,
    if (queue != null) 'queue': queue,
    if (waitMinutes != null) 'waitMinutes': waitMinutes,
  };
}