code: def optional(self):
          
          value = self._schema.get("optional", False)
          if value is not False and value is not True:
              raise SchemaError(
                  "optional value {0!r} is not a boolean".format(value))
          return value
docs: Flag indicating an optional property.