toNetworkSecurityType method
Implementation
NetworkSecurityType toNetworkSecurityType() {
switch (this) {
case 'OPEN':
return NetworkSecurityType.open;
case 'WEP':
return NetworkSecurityType.wep;
case 'WPA_PSK':
return NetworkSecurityType.wpaPsk;
case 'WPA2_PSK':
return NetworkSecurityType.wpa2Psk;
case 'WPA2_ENTERPRISE':
return NetworkSecurityType.wpa2Enterprise;
}
throw Exception('$this is not known in enum NetworkSecurityType');
}