def generate_response(self, response):
if not response:<EOL><INDENT>return self.__serializer__.dump({})<EOL><DEDENT>return self.__serializer__.dump(response.to_dict())<EOL>
Serializes the response object and returns the
            raw form.
            :param response: A `pinky.core.response.Response`
                object