Codec module allows to work with custom object transformations by encoding and decoding them in a fast and efficient way.
You can add Codec module to your project by inserting dependency in
CodecRegistry allows to easily access pre-defined codecs based on your custom data types. Use create() method to create your CodecRegistry, and with() to setup the codec.
StructuredCodecs contains various implementations of StructuredCodec. StructuredCodec extends StructuredEncoder and StructureDecoder interfaces. It wraps classes, lists, maps and other data structures for encoding/decoding. It has some basic implementations for most common use cases:
Yet, you can create custom codecs. There are several ways to do so: