Alexander Zhirkevich
07/04/2024, 8:38 AM@Serializable
abstract class Abstract(private val prop : Int? = null)
@Serializable
class Impl(val property: Int) : Abstract(property)
But this is Impossible to make this class serializable because its parent is not serializable and does not have exactly one constructor without parameters
for Impl
class
@Serializable(with = SomeSerializer::class)
abstract class Abstract(private val prop : Int? = null)
@Serializable
class Impl(val property: Int) : Abstract(property)