fromString static method

TaskQueue fromString(
  1. String value
)

Parse from string

Implementation

static TaskQueue fromString(String value) {
  return TaskQueue.values.firstWhere(
    (q) => q.name == value,
    orElse: () => TaskQueue.default_,
  );
}