def to_dict(self):
return {<EOL>'<STR_LIT:content>': self.content,<EOL>'<STR_LIT>': [r._asdict() for r in self.resources],  <EOL>'<STR_LIT>': self.js_init_fn,<EOL>'<STR_LIT>': self.js_init_version,<EOL>'<STR_LIT>': self.json_init_args<EOL>}<EOL>
Returns the fragment in a dictionary representation.