static fromDb(entry) {
        let value;
        if (!(entry.settingKey && entry.settingKey === FortiAnalyzerSettingItem.SETTING_KEY)) {
            throw new Error('Invalid entry setting key.');
        }
        try {
            value = JSON.parse(entry.settingValue);
        } catch (error) {
            throw new Error(`Invalid setting value: ${entry.settingValue}`);
        }
        if (!value.instanceId) {
            throw new Error('No instanceId found on setting value.');
        }
        return new FortiAnalyzerSettingItem(value.instanceId, value.ip, value.vip);
    }
/**
     * Resucitate from a stored DB entry
     * @param {Object} entry Entry from DB
     * @returns {LifecycleItem} A new setting item.
     */
Resucitate from a stored DB entry
@param {Object} entry Entry from DB
@returns {LifecycleItem} A new setting item.
Resucitate from a stored DB entry @param { Object } entry Entry from DB @returns { LifecycleItem } A new setting item .
static fromDb(entry) {
        let value;
        if (!(entry.settingKey && entry.settingKey === FortiAnalyzerSettingItem.SETTING_KEY)) {
            throw new Error('Invalid entry setting key.');
        }
        try {
            value = JSON.parse(entry.settingValue);
        } catch (error) {
            throw new Error(`Invalid setting value: ${entry.settingValue}`);
        }
        if (!value.instanceId) {
            throw new Error('No instanceId found on setting value.');
        }
        return new FortiAnalyzerSettingItem(value.instanceId, value.ip, value.vip);
    }
static fromDb ( entry ) { let value ; if ( ! ( entry . settingKey && entry . settingKey === FortiAnalyzerSettingItem . SETTING_KEY ) ) { throw new Error ( 'Invalid entry setting key.' ) ; } try { value = JSON . parse ( entry . settingValue ) ; } catch ( error ) { throw new Error ( ` ${ entry . settingValue } ` ) ; } if ( ! value . instanceId ) { throw new Error ( 'No instanceId found on setting value.' ) ; } return new FortiAnalyzerSettingItem ( value . instanceId , value . ip , value . vip ) ; }
Resucitate from a stored DB entry
 @param {Object} entry Entry from DB
 @returns {LifecycleItem} A new setting item.
Resucitate from a stored DB entry @param { Object } entry Entry from DB @returns { LifecycleItem } A new setting item .