def to_dict(self):
request_context_dict = {}<EOL>if self.request_context:<EOL><INDENT>request_context_dict = self.request_context.to_dict()<EOL><DEDENT>json_dict = {"<STR_LIT>": self.http_method,<EOL>"<STR_LIT:body>": self.body if self.body else None,<EOL>"<STR_LIT>": self.resource,<EOL>"<STR_LIT>": request_context_dict,<EOL>"<STR_LIT>": dict(self.query_string_params) if self.query_string_params else None,<EOL>"<STR_LIT>": dict(self.headers) if self.headers else None,<EOL>"<STR_LIT>": dict(self.path_parameters) if self.path_parameters else None,<EOL>"<STR_LIT>": dict(self.stage_variables) if self.stage_variables else None,<EOL>"<STR_LIT:path>": self.path,<EOL>"<STR_LIT>": self.is_base_64_encoded<EOL>}<EOL>return json_dict<EOL>
Constructs an dictionary representation of the ApiGatewayLambdaEvent Object to be used in serializing to JSON

:return: dict representing the object