ValueSerializer.defaults constructor Null safety

const ValueSerializer.defaults()

The builtin default serializer.

This serializer won't transform numbers or strings. Date times will be encoded as a unix-timestamp.

To override the default serializer drift uses, you can change the DriftRuntimeOptions.defaultSerializer field.

Implementation

const factory ValueSerializer.defaults() = _DefaultValueSerializer;