What is the best way to publish a data class which...
# serialization
k
What is the best way to publish a data class which is to be used internally/externally. Internally, I would like to use Kotlin serialization. Externally, I do not want to push Kotlin serialization on consumers. How do I straddle the fence?
v
Actually, having data classes at all in your API is a very questionable idea.