toStatus method

Status toStatus()

Implementation

Status toStatus() {
  switch (this) {
    case 'FAILED':
      return Status.failed;
    case 'IN_PROGRESS':
      return Status.inProgress;
    case 'PENDING':
      return Status.pending;
    case 'COMPLETED':
      return Status.completed;
    case 'UPDATED_OPTIMIZING':
      return Status.updatedOptimizing;
  }
  throw Exception('$this is not known in enum Status');
}