I am trying to find an example of working Polymorp...
# serialization
a
I am trying to find an example of working Polymorphic serialization with sealed class hierarchy and for now found only some scraps in commit history of kotlinx.serialization. Do anybody have a reference. My class hierarchy looks like this https://pastebin.com/59usEBxS and I need to have a List of those, which will be transformed into XML (via @pdvrieze plugin) and read back depending on tag name.
Write is working properly after adding
@ContextualSerialization
to list type
Deserialization does not work though. I've opened an issue in `xmlutil`: https://github.com/pdvrieze/xmlutil/issues/11 but it does not seem to be simple thing, so If someone have a suggestion, it would really help.
p
I ran into the same issue and decided that it's not mature enough yet for production usage