ReflectionCompositeConverter

Properties

Link copied to clipboard

The decoded class this converter is indexed under. Use Any::class to be offered every value.

Functions

Link copied to clipboard
open override fun canConvert(sourceClass: KClass<*>, expectedType: KType, sourceType: PgType, context: DeserializationContext): Boolean

Decides whether this converter handles the value at hand. Must return false unless convert can produce an instance of expectedType.

Link copied to clipboard
open override fun convert(source: PgComposite, expectedType: KType, sourceType: PgType, context: DeserializationContext): Any

Converts a value this converter has claimed.