fun <reified T : Any> SerialModule.getContextual(): KSerializer<T>?
Returns a dependent serializer associated with a given reified type.
(common, js, jvm, native)fun <T : Any> SerialModule.getContextual(value: T): KSerializer<T>?
Returns a serializer associated with KClass of the given value.