docs: def deserialize(cls, data, content_type=None):
          """Parse a str using the RestAPI syntax and return a model.
  
          :param str data: A str using RestAPI structure. JSON by default.
          :param str content_type: JSON by default, set application/xml if XML.
          :returns: An instance of this model
          :raises: DeserializationError if something went wrong
          """
          deserializer = Deserializer(cls._infer_class_models())
          return deserializer(cls.__name__, data, content_type=content_type)