deviceHostDTONullableListFromJson function
- List? deviceHostDTO, [
- List<
DeviceHostDTO> ? defaultValue
Implementation
List<enums.DeviceHostDTO>? deviceHostDTONullableListFromJson(
List? deviceHostDTO, [
List<enums.DeviceHostDTO>? defaultValue,
]) {
if (deviceHostDTO == null) {
return defaultValue;
}
return deviceHostDTO.map((e) => deviceHostDTOFromJson(e.toString())).toList();
}