getCodecByClass

fun <T : Any> getCodecByClass(kClass: KClass<T>): TypeCodec<T>?

Retrieves a default TypeCodec for the given Kotlin class.

Return

the corresponding TypeCodec or null if no default codec is registered for this class.

Parameters

kClass

the Kotlin class to find a codec for.