Join Slack
Powered by
Is there any way to get the type of a polymorphic ...
# serialization
p
Paul Woitaschek
11/06/2020, 6:20 AM
Is there any way to get the type of a polymorphic serialization? I'm serializing a sealed class to protobuf but I also need to know the unique
type
of the child class
e
edenman
11/06/2020, 7:07 AM
can’t tell if it’s relevant or not, but I do this to serialize a protobuf
oneof
https://github.com/edenman/kmpPlayground/blob/master/shared/src/commonMain/kotlin/chat/quill/data/OneOfSerializer.kt
4
Views
Open in Slack
Previous
Next