def export(self):
fields = ['<STR_LIT:id>', '<STR_LIT:host>', '<STR_LIT:port>', '<STR_LIT:user>']<EOL>out = {}<EOL>for field in fields:<EOL><INDENT>out[field] = getattr(self, field, None)<EOL><DEDENT>out['<STR_LIT>'] = self.mount_opts<EOL>out['<STR_LIT>'] = self.mount_point<EOL>out['<STR_LIT>'] = self.cmd_before_mount<EOL>out['<STR_LIT>'] = self.auth_method<EOL>out['<STR_LIT>'] = self.ssh_key<EOL>return json.dumps(out, indent=<NUM_LIT:4>)<EOL>
Serializes to JSON.