buildSerialDescriptor

fun buildSerialDescriptor(    serialName: String,     kind: SerialKind,     vararg typeParameters: SerialDescriptor,     builder: ClassSerialDescriptorBuilder.() -> Unit = {}): SerialDescriptor(source)

An unsafe alternative to buildClassSerialDescriptor that supports an arbitrary SerialKind. This function is left public only for migration of pre-release users and is not intended to be used as a generally safe and stable mechanism. Beware that it can produce inconsistent or non-spec-compliant instances.

If you end up using this builder, please file an issue with your use-case to the kotlinx.serialization issue tracker.