List<String> llmListToJson(List<enums.Llm>? llm) { if (llm == null) { return []; } return llm.map((e) => e.value!).toList(); }