toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DiscovererState.started:
      return 'STARTED';
    case DiscovererState.stopped:
      return 'STOPPED';
  }
}