docs: function encodeSummary(summary) {
      var file = summary.getFile();
      var parts = summary.getParts();
  
      return {
          file: encodeFile(file),
          parts: parts.map(encodeSummaryPart).toJS()
      };
  }