deviceEventIdListToJson function

List<String> deviceEventIdListToJson(
  1. List<DeviceEventId>? deviceEventId
)

Implementation

List<String> deviceEventIdListToJson(List<enums.DeviceEventId>? deviceEventId) {
  if (deviceEventId == null) {
    return [];
  }

  return deviceEventId.map((e) => e.value!).toList();
}