deviceSortDTONullableListFromJson function
- List? deviceSortDTO, [
- List<
DeviceSortDTO> ? defaultValue
Implementation
List<enums.DeviceSortDTO>? deviceSortDTONullableListFromJson(
List? deviceSortDTO, [
List<enums.DeviceSortDTO>? defaultValue,
]) {
if (deviceSortDTO == null) {
return defaultValue;
}
return deviceSortDTO.map((e) => deviceSortDTOFromJson(e.toString())).toList();
}