toTaskStatusType method

TaskStatusType toTaskStatusType()

Implementation

TaskStatusType toTaskStatusType() {
  switch (this) {
    case 'STARTING':
      return TaskStatusType.starting;
    case 'RUNNING':
      return TaskStatusType.running;
    case 'STOPPING':
      return TaskStatusType.stopping;
    case 'STOPPED':
      return TaskStatusType.stopped;
    case 'SUCCEEDED':
      return TaskStatusType.succeeded;
    case 'FAILED':
      return TaskStatusType.failed;
    case 'TIMEOUT':
      return TaskStatusType.timeout;
  }
  throw Exception('$this is not known in enum TaskStatusType');
}