

@staticmethod
def _deserialize(obj_dict):
    if (not isinstance(obj_dict, dict)):
        return obj_dict
    if ('type' not in obj_dict):
        return obj_dict
    try:
        model_cls = model.get_model(obj_dict['type'])
    except ImportError:
        return obj_dict
    if (not issubclass(model_cls, model.Model)):
        return obj_dict
    return model_cls.load(obj_dict['object'])

dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/cloudferry/lib/os/migrate/base.py ObjectTask._deserialize/original