toExecutionStatus method
Implementation
ExecutionStatus toExecutionStatus() {
switch (this) {
case 'PENDING':
return ExecutionStatus.pending;
case 'PENDING_CONCURRENCY':
return ExecutionStatus.pendingConcurrency;
case 'PENDING_DEVICE':
return ExecutionStatus.pendingDevice;
case 'PROCESSING':
return ExecutionStatus.processing;
case 'SCHEDULING':
return ExecutionStatus.scheduling;
case 'PREPARING':
return ExecutionStatus.preparing;
case 'RUNNING':
return ExecutionStatus.running;
case 'COMPLETED':
return ExecutionStatus.completed;
case 'STOPPING':
return ExecutionStatus.stopping;
}
throw Exception('$this is not known in enum ExecutionStatus');
}