toDeviceEventType method
Implementation
DeviceEventType toDeviceEventType() {
switch (this) {
case 'CONNECTION_STATUS':
return DeviceEventType.connectionStatus;
case 'DEVICE_STATUS':
return DeviceEventType.deviceStatus;
}
throw Exception('$this is not known in enum DeviceEventType');
}