class FieldWriterBoolValField
        extends FieldWriterBoolVal {
    FieldWriterBoolValField(
            String fieldName,
            int ordinal,
            long features,
            String format,
            String label,
            Field field,
            Class fieldClass
    ) {
        super(fieldName, ordinal, features, format, label, fieldClass, fieldClass, field, null);
    }

    @Override
    public Object getFieldValue(Object object) {
        return getFieldValueBoolean(object);
    }

    public boolean getFieldValueBoolean(Object object) {<FILL_FUNCTION_BODY>}
}

        if (object == null) {
            throw new JSONException("field.get error, " + fieldName);
        }

        try {
            boolean value;
            if (fieldOffset != -1) {
                value = UNSAFE.getBoolean(object, fieldOffset);
            } else {
                value = field.getBoolean(object);
            }
            return value;
        } catch (IllegalArgumentException | IllegalAccessException e) {
            throw new JSONException("field.get error, " + fieldName, e);
        }
    
<methods>public boolean write(com.alibaba.fastjson2.JSONWriter, java.lang.Object) <variables>