toJson method

Map<String, dynamic> toJson()

Serializes this manifest to a JSON-compatible map.

Implementation

Map<String, dynamic> toJson() => {
  AstBundleFormat.keyVersion: version,
  AstBundleFormat.keyEntryPoint: entryPoint,
  AstBundleFormat.keyFiles: files,
  if (sourceFiles != null) AstBundleFormat.keySources: sourceFiles,
};