import encodeFile from "./encodeFile" ; import encodeSummaryPart from "./encodeSummaryPart" ; param { Summary } return { Object } function encodeSummary ( summary ) { const file = summary . getFile ( ) ; const parts = summary . getParts ( ) ; return { file : encodeFile ( file ) , parts : parts . map ( encodeSummaryPart ) . toJS ( ) , } ; } export default encodeSummary ;