lib/json/encodeSummary.js
function encodeSummary(summary) {
    var file = summary.getFile();
    var parts = summary.getParts();

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

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

@param {Summary}
@return {Object}
Encode a summary to JSON