kotlinx.serialization icon indicating copy to clipboard operation
kotlinx.serialization copied to clipboard

A property determines the type of another property that should be deserialized

Open bitwalker37 opened this issue 3 years ago • 1 comments

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

image

TagAttributes:

image

UserAttributes:

image

bitwalker37 avatar Mar 02 '22 07:03 bitwalker37

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

bitwalker37 avatar Mar 02 '22 07:03 bitwalker37