Hi, is it possible to make some property not seria...
# serialization
t
Hi, is it possible to make some property not serialized conditionally, based on property value?
For example with this data class I need include
id
in json only when
id != null
Copy code
data class Entity (
    val id: String? = null
    val name:String = "name"
)
I use option
encodeDefaults = true
because i need all other properties included.