Join Slack
Communities
Powered by
How does one use the polymorphic stuff for sealed ...
# serialization
e
efemoney
05/12/2019, 9:20 PM
How does one use the polymorphic stuff for sealed class heirarchies? Can I get away with
only
annotating my sealed BaseClass with
@Polymorphic
?
i
ivan.savytskyi
05/14/2019, 6:59 PM
No you have to provide the SerializersModule with a mapping to specific serializers
ivan.savytskyi
05/14/2019, 7:01 PM
https://github.com/Kotlin/kotlinx.serialization/commit/30a51b070b310dd1a207273ff79ed0a11558e75e#diff-9ccad7c89badc05a74a7cb3c354383e9R41
8
Views
Open in Slack
Previous
Next