fromValue static method
Implementation
static BACnetDeviceStatus fromValue(int value) => switch (value) {
0 => STATUS_OPERATIONAL,
1 => STATUS_OPERATIONAL_READ_ONLY,
2 => STATUS_DOWNLOAD_REQUIRED,
3 => STATUS_DOWNLOAD_IN_PROGRESS,
4 => STATUS_NON_OPERATIONAL,
5 => STATUS_BACKUP_IN_PROGRESS,
6 => MAX_DEVICE_STATUS,
_ => throw ArgumentError('Unknown value for BACnetDeviceStatus: $value'),
};