serialDescriptor

Retrieves descriptor of type T using reified serializer function.

Example:

serialDescriptor<List<String>>() // Returns kotlin.collections.ArrayList(PrimitiveDescriptor(kotlin.String))

Retrieves descriptor of a type associated with the given KType.

Example:

val type = typeOf<List<String>>()

serialDescriptor(type) // Returns kotlin.collections.ArrayList(PrimitiveDescriptor(kotlin.String))