`kotlinx.serialization` recently added the ability...
# android
a
kotlinx.serialization
recently added the ability to derive a serializer from external classes with properties-only primary constructors: https://github.com/Kotlin/kotlinx.serialization/blob/v1.0.0-RC2/docs/serializers.md#deriving-external-serializer-for-another-kotlin-class-experimental Are there plans to add support for this sort of feature for
@Parcelize
?
g
I would recommend to create a feature request
problem with this approach as I see is that it wouldn’t be possible to use such class as property of another parcelable without some additional annotation I would say that it’s very good feature, but it require whole new API level (for example to encode/decode non Parcelable classes to Parcel before putting it to a bundle)