

@classmethod
def from_dict(cls, d, return_obj=None):
    if (not d):
        return None
    if (not return_obj):
        return_obj = cls()
    return_obj.phase_id = d.get('phase_id')
    return_obj.name = d.get('name')
    return_obj.ordinality = d.get('ordinality')
    return return_obj

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