Hello! Is there a way to serialize properties of a...
# serialization
c
Hello! Is there a way to serialize properties of a (sealed) superclass without using surrogates?
x
last time i checked it was serialising sealed properties correctly, as long as your sealed hierarchy looks like
Copy code
sealed class Parent {
  abstract val parentProperty: String
  data class Child(override val parentProperty: String, val childProperty: String): Parent()
}
c
Yes, but is there a way to serialize non abstract properties of the superclass?