Object Mappie3
Base class for object mappers. See the documentation for a complete overview of how to generate object mappers.
For example
class PersonMapper : ObjectMappie3<PersonDto, AddressDto, DateOfBirthDto, Person>() {
override fun map(first: PersonDto, second: Address) = mapping()
}Content copied to clipboard
will generate a mapper from PersonDto, AddressDto, and 'DateOfBirthDto 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.
FROM3
the third source type to map from.
TO
the target type to map to.