JsonDocumentTransformer constructor
Creates a new transformer.
The reviver
and toEncodable
arguments work the same way as the
corresponding arguments to new JsonCodec.
Implementation
JsonDocumentTransformer({reviver(key, value), toEncodable(object)})
: _codec = new JsonCodec(reviver: reviver, toEncodable: toEncodable);