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