static fromFlag(flaggable) {
        return flaggable.getFlag('foundry-ink', 'hooks').map(flagItem => {
            var hookData = new this(flagItem);
            hookData.callbackFn = new Function('...args', hookData.callbackFn);
            return hookData;
        });
    }
/**
     * Retrieves hook data from a flag, allowing event listeners to be reregistered
     * when the user reboots or refreshes foundry.
     * 
     * @param {FlaggableObject} flaggable - the object that implements
     *     foundry's setFlag interface.
     * @returns {Array<HookData>} the hooks that were stored in a flag.
     */
Retrieves hook data from a flag, allowing event listeners to be reregistered
when the user reboots or refreshes foundry.

@param {FlaggableObject} flaggable - the object that implements
foundry's setFlag interface.
@returns {Array} the hooks that were stored in a flag.
Retrieves hook data from a flag allowing event listeners to be reregistered when the user reboots or refreshes foundry . @param { FlaggableObject } flaggable - the object that implements foundry ' s setFlag interface . @returns { Array } the hooks that were stored in a flag .
static fromFlag(flaggable) {
        return flaggable.getFlag('foundry-ink', 'hooks').map(flagItem => {
            var hookData = new this(flagItem);
            hookData.callbackFn = new Function('...args', hookData.callbackFn);
            return hookData;
        });
    }
static fromFlag ( flaggable ) { return flaggable . getFlag ( 'foundry-ink' , 'hooks' ) . map ( flagItem => { var hookData = new this ( flagItem ) ; hookData . callbackFn = new Function ( '...args' , hookData . callbackFn ) ; return hookData ; } ) ; }
Retrieves hook data from a flag, allowing event listeners to be reregistered
 when the user reboots or refreshes foundry.
Retrieves hook data from a flag allowing event listeners to be reregistered when the user reboots or refreshes foundry .