A decoder for objects, with additional methods that are used to specify decoders for fields.
An object decoder will and can decode from any object that is a superset of this object without failure.
This means that using a decoder that decodes two string fields on an object with 10 string fields will
succeed provided that the two fields it expects are among those 10 fields.
The decoded value will always be exactly what was specified. No more, no less.
A decoder for objects, with additional methods that are used to specify decoders for fields.
An object decoder will and can decode from any object that is a superset of this object without failure. This means that using a decoder that decodes two string fields on an object with 10 string fields will succeed provided that the two fields it expects are among those 10 fields.
The decoded value will always be exactly what was specified. No more, no less.
example:
the above produces a decoder for