async toFlag(flaggable) {
        if (!flaggable.getFlag('foundry-ink', 'hooks')) {
            await flaggable.setFlag('foundry-ink', 'hooks', [this]);
        } else {
            flaggable.data.flags['foundry-ink'].hooks.push(this);
        }
    }
/**
     * Serializes hook data into a flag for a foundry object. This is necessary
     * because hooks do not persist when foundry reboots or refreshes.
     * 
     * @param {FlaggableObject} flaggable - the object that implements foundry's
     *     setFlag interface.
     */
Serializes hook data into a flag for a foundry object. This is necessary
because hooks do not persist when foundry reboots or refreshes.

@param {FlaggableObject} flaggable - the object that implements foundry's
setFlag interface.
Serializes hook data into a flag for a foundry object . This is necessary because hooks do not persist when foundry reboots or refreshes . @param { FlaggableObject } flaggable - the object that implements foundry ' s setFlag interface .
async toFlag(flaggable) {
        if (!flaggable.getFlag('foundry-ink', 'hooks')) {
            await flaggable.setFlag('foundry-ink', 'hooks', [this]);
        } else {
            flaggable.data.flags['foundry-ink'].hooks.push(this);
        }
    }
async toFlag ( flaggable ) { if ( ! flaggable . getFlag ( 'foundry-ink' , 'hooks' ) ) { await flaggable . setFlag ( 'foundry-ink' , 'hooks' , [ this ] ) ; } else { flaggable . data . flags [ 'foundry-ink' ] . hooks . push ( this ) ; } }
Serializes hook data into a flag for a foundry object.
Serializes hook data into a flag for a foundry object .