toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DetectorStatus.enabled:
      return 'ENABLED';
    case DetectorStatus.disabled:
      return 'DISABLED';
  }
}