Ignition module development: Creating 'advanced' settings dropdown in persistentRecord

Hello,

I am currently developing a module with persistent records for the gateway, and the settings page is getting pretty long. I love how Ignition can hide settings behind ‘Advanced Settings’ boolean, and was wondering how I could do this myself?