toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case BGPPeerState.verifying:
      return 'verifying';
    case BGPPeerState.pending:
      return 'pending';
    case BGPPeerState.available:
      return 'available';
    case BGPPeerState.deleting:
      return 'deleting';
    case BGPPeerState.deleted:
      return 'deleted';
  }
}