Join Slack
Powered by
Is it possible to make the fact that a class is `@...
# serialization
b
basher
09/26/2019, 10:43 PM
Is it possible to make the fact that a class is
@Serializable
internal
? I want to expose a class publicly, but I don't to provide access to its serializer
d
Dominaezzz
09/27/2019, 7:41 AM
Yes, don't mark it as such and create an internal serializer class.
🙌 1
Dominaezzz
09/27/2019, 7:46 AM
https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/custom_serializers.md#external-serializers-for-library-classes
4
Views
Open in Slack
Previous
Next