How to create node properties dynamically?

I am also developing a node that requires dynamic properties, which I was able to do when making a Zapier integration for our API. I believe this should work, but I have not tried it yet. @Talha_Khan is this what you were referring too?