toDetectorStatus method

DetectorStatus toDetectorStatus()

Implementation

DetectorStatus toDetectorStatus() {
  switch (this) {
    case 'ENABLED':
      return DetectorStatus.enabled;
    case 'DISABLED':
      return DetectorStatus.disabled;
  }
  throw Exception('$this is not known in enum DetectorStatus');
}