toJson method

String toJson({
  1. Hlc? modifiedSince,
  2. KeyEncoder<K>? keyEncoder,
  3. ValueEncoder<K, V>? valueEncoder,
})

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,
    );