Reading "fx" setting of a specific preset # from a usermod

In a usermode, if I am going to applyPreset(42), how can I obtain the json information about that preset? I’d like to know which “fx” it is using so I can change behavior. If the user created a preset with an effect, I want to have it continue to loop until shut off. If the effect is solid, I want to have my code pulse it on and off for them.

Thanks, much.