def to_dict(self):
identity_dict = {}<EOL>if self.identity:<EOL><INDENT>identity_dict = self.identity.to_dict()<EOL><DEDENT>json_dict = {"<STR_LIT>": self.resource_id,<EOL>"<STR_LIT>": self.api_id,<EOL>"<STR_LIT>": self.resource_path,<EOL>"<STR_LIT>": self.http_method,<EOL>"<STR_LIT>": self.request_id,<EOL>"<STR_LIT>": self.account_id,<EOL>"<STR_LIT>": self.stage,<EOL>"<STR_LIT>": identity_dict,<EOL>"<STR_LIT>": self.extended_request_id,<EOL>"<STR_LIT:path>": self.path<EOL>}<EOL>return json_dict<EOL>
Constructs an dictionary representation of the RequestContext Object to be used in serializing to JSON

:return: dict representing the object