

@classmethod
def from_obj(cls, obj, return_obj=None):
    if (not obj):
        return None
    if (not return_obj):
        return_obj = cls()
    return_obj.phase_id = obj.phase_id
    return_obj.name = obj.name
    return_obj.ordinality = obj.ordinality
    return return_obj

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