kotlinx-serialization / kotlinx.serialization.json / JsonParametricSerializer / descriptor

descriptor

(common, js, jvm, native) open val descriptor: SerialDescriptor

A descriptor for this set of parametric serializers. By default, it uses the name composed of baseClass simple name, kind is set to PolymorphicKind.SEALED and contains 0 elements.

However, this descriptor can be overridden to achieve better representation of custom transformed JSON shape for schema generating/introspection purposes.