class FieldWriterBoolVal
        extends FieldWriterBoolean {
    FieldWriterBoolVal(
            String name,
            int ordinal,
            long features,
            String format,
            String label,
            Type fieldType,
            Class fieldClass,
            Field field,
            Method method
    ) {
        super(name, ordinal, features, format, label, fieldType, fieldClass, field, method);
    }

    @Override
    public boolean write(JSONWriter jsonWriter, Object object) {<FILL_FUNCTION_BODY>}
}

        boolean value;
        try {
            value = (Boolean) getFieldValue(object);
        } catch (RuntimeException error) {
            if (jsonWriter.isIgnoreErrorGetter()) {
                return false;
            }
            throw error;
        }

        if (!value) {
            long features = this.features | jsonWriter.getFeatures();
            if (defaultValue == null && (features & JSONWriter.Feature.NotWriteDefaultValue.mask) != 0) {
                return false;
            }
        }

        writeBool(jsonWriter, value);
        return true;
    
<methods>public ObjectWriter#RAW getObjectWriter(com.alibaba.fastjson2.JSONWriter, Class#RAW) ,public boolean write(com.alibaba.fastjson2.JSONWriter, java.lang.Object) ,public final void writeBool(com.alibaba.fastjson2.JSONWriter, boolean) ,public void writeValue(com.alibaba.fastjson2.JSONWriter, java.lang.Object) <variables>final non-sealed char[] utf16Value0,final non-sealed char[] utf16Value1,final non-sealed char[] utf16ValueFalse,final non-sealed char[] utf16ValueTrue,final non-sealed byte[] utf8Value0,final non-sealed byte[] utf8Value1,final non-sealed byte[] utf8ValueFalse,final non-sealed byte[] utf8ValueTrue