def to_json()

in awsglue/blueprint/workflow.py [0:0]


    def to_json(self, name_suffix = ""):
        self.validate()
        result = {}
        result['Workflow'] = {key: value for key, value in self.__dict__.items() if
                              key in self._validator and key not in ["Entities", "OnSchedule"]}
        result['Crawlers'], result['Jobs'], result['Triggers'] = self.Entities.to_json(self.Name,
                                                                                       self.OnSchedule if "OnSchedule" in self.__dict__ else "",
                                                                                       name_suffix)
        return result