Is there a way to serialize all values of an enum with JSON in Kotlin?
I have the following enum:
enum class Difficulty {
EASY, MEDIUM, HARD
}
My Rest API is working in the following way: I have classes, and every class has a classManagementService, which helps to list every Response. Like this:
@Service
class RecipeManagementService (@Autowired private val recipeRepository: RecipeRepository,
private val addRecipeRequestTransformer: AddRecipeRequestTransformer) {
fun findAll(): List =...