

def to_obj(self, return_obj=None, ns_info=None):
    super(KillChain, self).to_obj(return_obj=return_obj, ns_info=ns_info)
    if (not return_obj):
        return_obj = self._binding_class()
    return_obj.id = self.id_
    return_obj.name = self.name
    return_obj.definer = self.definer
    return_obj.reference = self.reference
    return_obj.number_of_phases = self.number_of_phases
    return_obj.Kill_Chain_Phase = self.kill_chain_phases.to_obj(ns_info=ns_info)
    return return_obj

dataset/ETHPy150Open STIXProject/python-stix/stix/common/kill_chains/__init__.py KillChain.to_obj/original