exportFileTypeDTOListFromJson function
- List? exportFileTypeDTO, [
- List<
ExportFileTypeDTO> ? defaultValue
Implementation
List<enums.ExportFileTypeDTO> exportFileTypeDTOListFromJson(
List? exportFileTypeDTO, [
List<enums.ExportFileTypeDTO>? defaultValue,
]) {
if (exportFileTypeDTO == null) {
return defaultValue ?? [];
}
return exportFileTypeDTO
.map((e) => exportFileTypeDTOFromJson(e.toString()))
.toList();
}