toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ConnectionStatus.connected:
      return 'CONNECTED';
    case ConnectionStatus.disconnected:
      return 'DISCONNECTED';
  }
}