kotlinx.serialization
kotlinx.serialization copied to clipboard
A property determines the type of another property that should be deserialized
I looked at the related polymorphic deserialization documentation & Class discriminator
but now the situation is that I have a class with a property in it that determines the type of another property that should be deserialized and the deserialized name is the same , please advise how to do it in this case, thanks

TagAttributes:

UserAttributes:

At the same time, I encountered another problem in the process of deserialization, and I hope to get your answer. thank you very much