toEdgePackagingJobStatus method

EdgePackagingJobStatus toEdgePackagingJobStatus()

Implementation

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