toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DetectorVersionStatus.draft:
      return 'DRAFT';
    case DetectorVersionStatus.active:
      return 'ACTIVE';
    case DetectorVersionStatus.inactive:
      return 'INACTIVE';
  }
}