Also I see ways to pick up sealed classes using `w...
# konsist
c
Also I see ways to pick up sealed classes using
withSealedModifier
, but what about the child types belonging sealed classes? (Similar serialization use case, but in this specific situation serialization uses the fully qualified class name as the serial name which is almost never what I want).
i
I will add sealed classes child to backlog. Can please explain this serialisation example in more details, perhaps share some code
c
Thank you! When serializing a sealed class, the serialization is polymorphic and has a key representing the type. Kotlinx serialization will use the fully qualified class name which leaks some implementation details and makes package refactoring a pain. E.g. {type = “com.org.app.ClassName.SubType”} when { type = “subtype” } is often preferred.