How to replace null values to in map during deserialization in kotlin
I have data class, which is used for place response from some REST service:
data class RestResponse(
val themes: List = emptyList(),
)
and some values inside map could be empty strings.
But there is configuration in project that affect this:
enable(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT)
so, all empty strings is casted to null values.
I don't want to fix this setting for the whole project, but only want to empty strings for map in this response don't be cast to null...