How to add a toggle for including a page in sitemap?

Hey nice folk!

So I was trying to add a sort o toggle for including a given page to our sitemap.xml generation. :robot_face::mag_right:
I could not find a way to get this page meta prop (from screenshot) value in code…
Fetching pages return nothing in metadata field…
Any way y’all know to accomplish that?

You can do this by setting the metadata key values right below it, ignore the props

Sorry for the confusion, we are going to be renaming meta props to simply props