stratadox/hydration-mapping-contracts

v0.4 2020-11-14 11:31 UTC

This package is auto-updated.

Last update: 2024-11-14 21:09:22 UTC


README

Latest Stable Version License

Mappings for hydration purposes.

Maps array or array-like data structures to object properties, in order to assemble the objects that model a business domain.

Why are there only interfaces in this package

This package exists to decouple the hydrator from it's default mapping implementation.

In this setup, projects that only need the hydrator with no mapping won't need to import the mapping code. Conversely, projects can use the hydration mappings without having to deal with the hydrator itself.