toJson method
Outputs the contents of this CRDT in Json format.
Use modifiedSince
to encode only the most recently modified records.
Use keyEncoder
to convert non-string keys.
Use valueEncoder
to convert non-native value types.
Implementation
String toJson(
{Hlc? modifiedSince,
KeyEncoder<K>? keyEncoder,
ValueEncoder<K, V>? valueEncoder}) =>
CrdtJson.encode(
recordMap(modifiedSince: modifiedSince),
keyEncoder: keyEncoder,
valueEncoder: valueEncoder,
);