ConvertWith

@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class ConvertWith(val use: KClass<out MapTypeConverter<*, *>> = MapTypeConverter::class, val onFail: OnFail = OnFail.Auto)

Per-field OVERRIDE of converter resolution and/or brokenness policy (both directions). Never required for discovery — built-ins and @KMapperConfig converters are pair-discovered. use left at its sentinel default means "keep the auto-discovered converter".

Properties

Link copied to clipboard
Link copied to clipboard
val use: KClass<out MapTypeConverter<*, *>>