toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DeviceEventType.connectionStatus:
      return 'CONNECTION_STATUS';
    case DeviceEventType.deviceStatus:
      return 'DEVICE_STATUS';
  }
}