KeepGeneratedSerializer

Instructs the serialization plugin to keep automatically generated implementation of KSerializer for the current class if a custom serializer is specified at the same time @Serializable(with=SomeSerializer::class).

Automatically generated serializer is available via generatedSerializer() function in companion object of serializable class.

Generated serializers allow to use custom serializers on classes from which other serializable classes are inherited.

Used only with the Serializable annotation.

A compiler version 2.0.0 and higher is required.