Is there any way to get the type of a polymorphic ...
# serialization
p
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
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