toValue method

String toValue()

Implementation

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