toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case Status.enabled:
      return 'ENABLED';
    case Status.enabling:
      return 'ENABLING';
    case Status.disabled:
      return 'DISABLED';
    case Status.disabling:
      return 'DISABLING';
  }
}