def to_dict(self):
        """
        Returns a dictionary that represents this object, to be used for JSONification.

        :return: the object dictionary
        :rtype: dict
        """
        result = super(ActorHandler, self).to_dict()
        result["type"] = "ActorHandler"
        del result["config"]["actors"]
        result["actors"] = []
        for actor in self.actors:
            result["actors"].append(actor.to_dict())
        return result
def to_dict ( self ) : result = super ( ActorHandler , self ) . to_dict ( ) result [ "type" ] = "ActorHandler" del result [ "config" ] [ "actors" ] result [ "actors" ] = [ ] for actor in self . actors : result [ "actors" ] . append ( actor . to_dict ( ) ) return result
Returns a dictionary that represents this object, to be used for JSONification.

        :return: the object dictionary
        :rtype: dict