toIpRouteStatusMsg method
Implementation
IpRouteStatusMsg toIpRouteStatusMsg() {
switch (this) {
case 'Adding':
return IpRouteStatusMsg.adding;
case 'Added':
return IpRouteStatusMsg.added;
case 'Removing':
return IpRouteStatusMsg.removing;
case 'Removed':
return IpRouteStatusMsg.removed;
case 'AddFailed':
return IpRouteStatusMsg.addFailed;
case 'RemoveFailed':
return IpRouteStatusMsg.removeFailed;
}
throw Exception('$this is not known in enum IpRouteStatusMsg');
}