taskTypeListToJson function

List<String> taskTypeListToJson(
  1. List<TaskType>? taskType
)

Implementation

List<String> taskTypeListToJson(List<enums.TaskType>? taskType) {
  if (taskType == null) {
    return [];
  }

  return taskType.map((e) => enums.$TaskTypeMap[e]!).toList();
}