deviceHostDTOListToJson function

List<String> deviceHostDTOListToJson(
  1. List<DeviceHostDTO>? deviceHostDTO
)

Implementation

List<String> deviceHostDTOListToJson(List<enums.DeviceHostDTO>? deviceHostDTO) {
  if (deviceHostDTO == null) {
    return [];
  }

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