Hello <@UHGG4DEHJ> I’ve been struggling to write t...
# kondor-json
r
Hello @Uberto Barbini I’ve been struggling to write the converter for a specific use case. It’s a case of a nullable Enum field with properties. I tried the generator but wasn’t very helpful and couldn’t find any exemples of that. I want to serialise `TitleRequest`:
Copy code
data class TitleRequest(
    val id: String,
    val type: TitleType? = null
)

enum class TitleType(val label: String) {
    Movie("movie"), Series("series"), Episoode("episode")
}
but the
type
field in the json I want to be the
TitleType.label
value instead the Enum’s name.
Copy code
{
   id: "Title string",
   type: "movie"
}
Thanks