DirectCodec
Codec for a model used directly as both the domain and persisted representation.
Do not use this in production systems. Persisted data should have a representation independent of the domain model so domain changes cannot silently break stored data.