toSessionConnectionState method
Implementation
SessionConnectionState toSessionConnectionState() {
switch (this) {
case 'CONNECTED':
return SessionConnectionState.connected;
case 'NOT_CONNECTED':
return SessionConnectionState.notConnected;
}
throw Exception('$this is not known in enum SessionConnectionState');
}