toTaskExecutionStatus method
Implementation
TaskExecutionStatus toTaskExecutionStatus() {
switch (this) {
case 'QUEUED':
return TaskExecutionStatus.queued;
case 'LAUNCHING':
return TaskExecutionStatus.launching;
case 'PREPARING':
return TaskExecutionStatus.preparing;
case 'TRANSFERRING':
return TaskExecutionStatus.transferring;
case 'VERIFYING':
return TaskExecutionStatus.verifying;
case 'SUCCESS':
return TaskExecutionStatus.success;
case 'ERROR':
return TaskExecutionStatus.error;
}
throw Exception('$this is not known in enum TaskExecutionStatus');
}