def to_params(self):
params = {}<EOL>custom_params = {}<EOL>for key in self.custom_params:<EOL><INDENT>custom_params[key] = self.custom_params[key]<EOL><DEDENT>ext_params = {}<EOL>for key in self.ext_params:<EOL><INDENT>ext_params[key] = self.ext_params[key]<EOL><DEDENT>for key in LAUNCH_DATA_PARAMETERS:<EOL><INDENT>if hasattr(self, key):<EOL><INDENT>params[key] = getattr(self, key)<EOL><DEDENT><DEDENT>params.update(custom_params)<EOL>params.update(ext_params)<EOL>return params<EOL>
Createa a new dictionary with all launch data. Custom / Extension keys
will be included. Roles are set as a ',' separated string.