subclass

fun <T : Base> subclass(subclass: KClass<T>, serializer: KSerializer<T>)(source)

Registers a subclass in the resulting module under the base class.