

@classmethod
def from_obj(cls, obj, return_obj=None):
    if (not obj):
        return None
    if (not return_obj):
        return_obj = cls()
    return_obj.id_ = obj.id
    return_obj.name = obj.name
    return_obj.definer = obj.definer
    return_obj.reference = obj.reference
    return_obj.number_of_phases = obj.number_of_phases
    return_obj.kill_chain_phases = _KillChainPhases.from_obj(obj.Kill_Chain_Phase)
    return return_obj

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