toMap method

Map<String, Object?> toMap()

A versioned, lossless projection including fitted passages and citations. Commit this with the corresponding store and embedding configuration.

Implementation

Map<String, Object?> toMap() => {
  'version': 1,
  'bundleId': bundleId,
  'sources': sources,
  'assets': assets,
  'chunks': [for (final chunk in chunks) chunk.toMap()],
  'contextTexts': _contextTexts,
  'inputRecoveries': [for (final r in _recoveries) r.toMap()],
};