@classmethod
def translate_dict_keys_to_data_model(cls, wsme_dict):
    """Translate the keys from wsme class type, to data_model."""
    if not hasattr(cls, '_type_to_model_map'):
        return wsme_dict
    res = {}
    for k, v in wsme_dict.items():
        if k in cls._type_to_model_map:
            k = cls._type_to_model_map[k]
            if '.' in k:
                parent, child = k.split('.')
                if parent not in res:
                    res[parent] = {}
                res[parent][child] = v
                continue
        res[k] = v
    return res
