Object Mappie2
Base class for object mappers. See the documentation for a complete overview of how to generate object mappers.
For example
class PersonMapper : ObjectMappie2<PersonDto, AddressDto, Person>() {
override fun map(first: PersonDto, second: AddressDto) = mapping()
}Content copied to clipboard
will generate a mapper from PersonDto and AddressDto to Person, assuming all dto's and Person have a resolvable mapping.
Parameters
FROM1
the first source type to map from.
FROM2
the second source type to map from.
TO
the target type to map to.