toDetectorModelVersionStatus method

DetectorModelVersionStatus toDetectorModelVersionStatus()

Implementation

DetectorModelVersionStatus toDetectorModelVersionStatus() {
  switch (this) {
    case 'ACTIVE':
      return DetectorModelVersionStatus.active;
    case 'ACTIVATING':
      return DetectorModelVersionStatus.activating;
    case 'INACTIVE':
      return DetectorModelVersionStatus.inactive;
    case 'DEPRECATED':
      return DetectorModelVersionStatus.deprecated;
    case 'DRAFT':
      return DetectorModelVersionStatus.draft;
    case 'PAUSED':
      return DetectorModelVersionStatus.paused;
    case 'FAILED':
      return DetectorModelVersionStatus.failed;
  }
  throw Exception('$this is not known in enum DetectorModelVersionStatus');
}