toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case InsightState.active:
      return 'ACTIVE';
    case InsightState.closed:
      return 'CLOSED';
  }
}