def convertListDomainToDict(list_domains:list):
    """
    convert a list of domains objects to a dictionary with the designation in the key and the id in value

    :param list_domains: list of domains json objects

    :type list_domains: list[DomainJ]


    :return: dictionary
    :rtype: dict[designation] = id

    """
    dict_domains = {x.designation: x.id for x in list_domains}
    return dict_domains