parameter

fun parameter(name: String): KProperty<*>

Deprecated

Replace with to

Replace with

to(name)

Reference a constructor parameter in lieu of a property reference, if it not exists as a property.

For example

parameter("name") fromProperty PersonDto::fullName

will generate an explicit mapping, setting constructor parameter name to PersonDto.fullName.