Hi there!
We wrote a nifty library, that allows you to use Custom Primitives in your code, have “always valid” Serialized Objects who’s construction is controller by you in the factory methods. We believe it adheres to clean code standards and provides an easy way to add custom primitive to your project, serialize and de-serialize Data Transfer Objects and Domain Objects using them.
We’d love to hear feedback about it, and see your contributions in the future.
Here is the link to the repo https://github.com/envimate/mapmate
and the introduction article in our blog https://blog.envimate.com/mapmate-intro