toJson method

Map<String, dynamic> toJson()

Serializes the tree structure for storage/transmission

Implementation

Map<String, dynamic> toJson() {
  return {
    'leafCount': leafCount,
    'height': height,
    'rootHash': rootHash,
    'leafHashes': leafHashes,
    'salt': _salt,
  };
}