AutoMapper

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class AutoMapper(val target: KClass<*>, val defaults: Array<Default> = [], val imports: Array<String> = [], val exclude: String = [])

Annotation to automatically generate a mapper for the specified target class.

Properties

Link copied to clipboard

An array of default values to be used during the mapping process.

Link copied to clipboard
val exclude: Array<out String>

A vararg of property names to be excluded from the mapping.

Link copied to clipboard

An array of import statements required for the generated mapper.

Link copied to clipboard
val target: KClass<*>

The target class to which the mapping should be generated.