toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case SessionConnectionState.connected:
      return 'CONNECTED';
    case SessionConnectionState.notConnected:
      return 'NOT_CONNECTED';
  }
}