sortDirectionDTONullableListFromJson function
- List? sortDirectionDTO, [
- List<
SortDirectionDTO> ? defaultValue
Implementation
List<enums.SortDirectionDTO>? sortDirectionDTONullableListFromJson(
List? sortDirectionDTO, [
List<enums.SortDirectionDTO>? defaultValue,
]) {
if (sortDirectionDTO == null) {
return defaultValue;
}
return sortDirectionDTO
.map((e) => sortDirectionDTOFromJson(e.toString()))
.toList();
}