@Serializable
sealed class Base
@Serializable(with = ContentBasedUserDeserializer::class)
@SerialName("user")
sealed class User : Base()
@Serializable
data class FirstUserType : User()
I found an issue on GitHub about nested polymorphism, but it says it would be covered in 1.x and hasn't been updated in 4 years.
If what I'm doing right now is not supported, is there a workaround to deserialize the data I have now?
Stijndcl
05/05/2024, 11:50 AM
Update: I managed to hack it together myself using multiple