toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case BGPStatus.up:
      return 'up';
    case BGPStatus.down:
      return 'down';
    case BGPStatus.unknown:
      return 'unknown';
  }
}