transform json payload coming from Ariane server to local object
        :param json_obj: the json payload coming from Ariane server
        :return: local endpoint object

def json_2_endpoint(json_obj):
        """
        transform json payload coming from Ariane server to local object
        :param json_obj: the json payload coming from Ariane server
        :return: local endpoint object
        """
        LOGGER.debug("Endpoint.json_2_endpoint")
        if MappingService.driver_type != DriverFactory.DRIVER_REST:
            if 'endpointProperties' in json_obj:
                properties = DriverTools.json2properties(json_obj['endpointProperties'])
            else:
                properties = None
        else:
            properties = json_obj['endpointProperties'] if 'endpointProperties' in json_obj else None

        return Endpoint(
            eid=json_obj['endpointID'],
            url=json_obj['endpointURL'],
            parent_node_id=json_obj['endpointParentNodeID'] if 'endpointParentNodeID' in json_obj else None,
            twin_endpoints_id=json_obj['endpointTwinEndpointsID'],
            properties=properties,
            ignore_sync=True
        )