register

inline fun <reified T : Any> register(
    mapper: KSerializer<T>
): Unit

Set the mapping from T to mapper.

inline fun <reified T : Any> register(): Unit

Set the mapping from T to it’s KSerializer. This method only works for non-parameterized types.