code: def to_dict(self):
          
          result = {}
          result["type"] = "Configurable"
          result["class"] = get_classname(self)
          result["config"] = {}
          for k in self._config:
              v = self._config[k]
              if isinstance(v, JSONObject):
                  result["config"][k] = v.to_dict()
              else:
                  result["config"][k] = v
          return result
docs: Returns a dictionary that represents this object, to be used for JSONification.
  
          :return: the object dictionary
          :rtype: dict