contextual

open fun <T : Any> contextual(kClass: KClass<T>, serializer: KSerializer<T>)(source)

Accept a serializer, associated with kClass for contextual serialization.


abstract fun <T : Any> contextual(kClass: KClass<T>, provider: (typeArgumentsSerializers: List<KSerializer<*>>) -> KSerializer<*>)(source)

Accept a provider, associated with generic kClass for contextual serialization.