code: def from_entry_dict(cls, entry_dict):
          
          # Debug helper
          # https://circleci.com/gh/andresriancho/w3af-api-docker/30
          try:
              _type = entry_dict['type']
              _id = entry_dict['id']
              _time = entry_dict['time']
              message = entry_dict['message']
              severity = entry_dict['severity']
          except KeyError:
              msg = ('Missing expected log entry attribute. Log entry'
                     ' object is:\n\n%s')
              raise APIException(msg % json.dumps(entry_dict, indent=4))
  
          return cls(_type, message, _time, severity, _id)
docs: This is a "constructor" for the LogEntry class.
  
          :param entry_dict: A dict we get from the REST API
          :return: An instance of LogEntry.