Send custom data to endpoint based on checkbox value via webforms POST handler
You could use a Computed Twig element to execute the ternary operator and set the value in the remote post data. 

@see https://www.youtube.com/watch?v=rRlTTkwdP_o