You can add one checkbox in dialog and on selection of it you can show/hide the button in Sightly.
Dialog
"items": {
"jcr:primaryType": "nt:unstructured",
"showbutton": {
"jcr:primaryType": "nt:unstructured",
"name": "./selected",
"text": "Show Button",
"value": "true",
"sling:resourceType": "gra...