function setBoolProp(src, dst, propName, def) {
        if (src[propName] != null) {
            if(src[propName] === "true" || src[propName] === true) {
                dst[propName] = true;
            } else if(src[propName] === "false" || src[propName] === false) {
                dst[propName] = false;
            }
        } else {
            if(def != undefined) dst[propName] = def;
        }
    }
Helper function for setting boolean property values in the MQTT V5 properties object
@param {object} src Source object containing properties
@param {object} dst Destination object to set/add properties
@param {string} propName The property name to set in the Destination object
@param {boolean} [def] An optional default to set in the destination object if prop is NOT present in the soruce object