mapr library
Mapr is a library for auto generating and registering mapping models for dart objects This project was created in order to help separate the concerns of data objects inside dart and flutter projects. By removing mapping logic from the repository layer we can isolate mapping errors to a single place as well as test front end objects and backend objects separately
Classes
-
MapFunction<
TSrc, TDst> - Structur for a mapping conversion
- Mapr
- Base class for creating a Mapper host with Mapr Can be created manually by extending this class however typically used with code generation
- MaprBase
- Annotation for creating a generated mapper class
-
ObjectMap<
TSrc, TDst> -
A class for describing a conversion to be generated
TSrc
is the source typeTDst
is the destination type
Enums
- NameConvention
- enum for supported name conventions for auto map conversion