ConvertTo

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

Direction-scoped per-field override: applies only to the @MapTo (forward) direction; beats @ConvertWith there. Same parameter shape as ConvertWithuse 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<*, *>>