setMapper

fun <T : Any> setMapper(
    type: KClass<T>,
    serializer: KSerializer<T>
): Unit

Deprecated: [setMapper] is obsolete with 1.3.50 typeOf feature

Set mapping from type to generated KSerializer.