deviceEventIdListFromJson function
- List? deviceEventId, [
- List<
DeviceEventId> ? defaultValue
Implementation
List<enums.DeviceEventId> deviceEventIdListFromJson(
List? deviceEventId, [
List<enums.DeviceEventId>? defaultValue,
]) {
if (deviceEventId == null) {
return defaultValue ?? [];
}
return deviceEventId.map((e) => deviceEventIdFromJson(e.toString())).toList();
}