toCompilationJobStatus method

CompilationJobStatus toCompilationJobStatus()

Implementation

CompilationJobStatus toCompilationJobStatus() {
  switch (this) {
    case 'INPROGRESS':
      return CompilationJobStatus.inprogress;
    case 'COMPLETED':
      return CompilationJobStatus.completed;
    case 'FAILED':
      return CompilationJobStatus.failed;
    case 'STARTING':
      return CompilationJobStatus.starting;
    case 'STOPPING':
      return CompilationJobStatus.stopping;
    case 'STOPPED':
      return CompilationJobStatus.stopped;
  }
  throw Exception('$this is not known in enum CompilationJobStatus');
}