toConnectivity method
Implementation
Connectivity toConnectivity() {
switch (this) {
case 'CONNECTED':
return Connectivity.connected;
case 'DISCONNECTED':
return Connectivity.disconnected;
}
throw Exception('$this is not known in enum Connectivity');
}