Mappie supports creating object mappers via the base class ObjectMappie
. Extending this class will instruct Mappie
to generate a mapper which will call a constructor and possibly setters of the target type, based on the implicit- and
explicit mappings.
Implicit mappings are those that can be inferred automatically, and is explained in Inferring Implicit Mappings. Explicit mappings need to be defined by the programmer, for which there are multiple ways: by property, by value, and by expression. These options are explained in further detail in Constructing Explicit Mappings.