toBGPStatus method
Implementation
BGPStatus toBGPStatus() {
switch (this) {
case 'up':
return BGPStatus.up;
case 'down':
return BGPStatus.down;
case 'unknown':
return BGPStatus.unknown;
}
throw Exception('$this is not known in enum BGPStatus');
}