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
Vampire
01/08/2025, 7:20 PM
Actually, having data classes at all in your API is a very questionable idea.