code: def __convert_bool(node):
      
      converted = __convert_node(node, default_value='true')
  
      # Check for a switch for reversing the value
      reverse_switch = __get_attribute(node, 'ReverseSwitch')
  
      if reverse_switch:
          converted_reverse = copy.deepcopy(converted)
  
          converted_reverse['switch'] = reverse_switch
          converted_reverse['value'] = 'false'
  
          return [converted_reverse, converted]
  
      # Modify flags when there is an argument child
      __with_argument(node, converted)
  
      return __check_for_flag(converted)
docs: Converts an BoolProperty node to JSON format.