Method: Sidetree::Model::ChunkFile#to_json

Defined in:
lib/sidetree/model/chunk_file.rb

#to_jsonString

Build json string to be stored in CAS.

Returns:

  • json string.



60
61
62
# File 'lib/sidetree/model/chunk_file.rb', line 60

def to_json
  { deltas: deltas.map(&:to_h) }.to_json
end