toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ConnectionStatus.connected:
      return 'Connected';
    case ConnectionStatus.notConnected:
      return 'NotConnected';
  }
}