def deserialize(self, response, response_type):
<EOL>if response_type == "<STR_LIT:file>":<EOL><INDENT>return self.__deserialize_file(response)<EOL><DEDENT>try:<EOL><INDENT>data = json.loads(response.data)<EOL><DEDENT>except ValueError:<EOL><INDENT>data = response.data<EOL><DEDENT>return self.__deserialize(data, response_type)<EOL>
Deserializes response into an object.

:param response: RESTResponse object to be deserialized.
:param response_type: class literal for
    deserialized object, or string of class name.

:return: deserialized object.