def save_to_json(self):
requestvalues = {<EOL>'<STR_LIT>': self.dataset,<EOL>'<STR_LIT:Name>': self.name,<EOL>'<STR_LIT>': self.description,<EOL>'<STR_LIT>': self.source,<EOL>'<STR_LIT>': self.publication_date,<EOL>'<STR_LIT>': self.accessed_on,<EOL>'<STR_LIT>': self.dataset_ref,<EOL>'<STR_LIT>': self.upload_format_type,<EOL>'<STR_LIT>': self.columns,<EOL>'<STR_LIT>': self.file_property.__dict__,<EOL>'<STR_LIT>': self.flat_ds_update_options,<EOL>'<STR_LIT>': self.public<EOL>}<EOL>return json.dumps(requestvalues)<EOL>
The method saves DatasetUpload to json from object