toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case TargetState.registering:
      return 'REGISTERING';
    case TargetState.available:
      return 'AVAILABLE';
    case TargetState.unavailable:
      return 'UNAVAILABLE';
  }
}