ConvertFrom

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

Direction-scoped per-field override: applies only to the @MapFrom (reverse) 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<*, *>>