TaskStatus.of constructor
TaskStatus.of(
- String value
The value value; one outside the schema is kept as is.
Implementation
factory TaskStatus.of(String value) => switch (value) {
'cancelled' => cancelled,
'completed' => completed,
'failed' => failed,
'input_required' => inputRequired,
'working' => working,
_ => TaskStatus._(value),
};