exportFileTypeDTOListToJson function

List<String> exportFileTypeDTOListToJson(
  1. List<ExportFileTypeDTO>? exportFileTypeDTO
)

Implementation

List<String> exportFileTypeDTOListToJson(
    List<enums.ExportFileTypeDTO>? exportFileTypeDTO) {
  if (exportFileTypeDTO == null) {
    return [];
  }

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