class FieldWriterOffsetDateTimeFunc<T>
        extends FieldWriterObjectFinal<T> {
    final Function function;

    FieldWriterOffsetDateTimeFunc(
            String name,
            int ordinal,
            long features,
            String format,
            String label,
            Type fieldType,
            Class fieldClass,
            Field field,
            Method method,
            Function function
    ) {
        super(name, ordinal, features, format, label, fieldType, fieldClass, field, method);
        this.function = function;
    }

    @Override
    public Object getFieldValue(Object object) {
        return function.apply(object);
    }

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

    @Override
    public Function getFunction() {
        return function;
    }
}

        OffsetDateTime dateTime = (OffsetDateTime) function.apply(object);
        if (dateTime == null) {
            long features = this.features | jsonWriter.getFeatures();
            if ((features & JSONWriter.Feature.WriteNulls.mask) != 0) {
                writeFieldName(jsonWriter);
                jsonWriter.writeNull();
                return true;
            } else {
                return false;
            }
        }

        writeFieldName(jsonWriter);

        if (objectWriter == null) {
            objectWriter = getObjectWriter(jsonWriter, OffsetDateTime.class);
        }

        if (objectWriter != ObjectWriterImplOffsetDateTime.INSTANCE) {
            objectWriter.write(jsonWriter, dateTime, fieldName, fieldClass, features);
        } else {
            jsonWriter.writeOffsetDateTime(dateTime);
        }
        return true;
    
<methods>public ObjectWriter#RAW getObjectWriter(com.alibaba.fastjson2.JSONWriter, Class#RAW) ,public boolean write(com.alibaba.fastjson2.JSONWriter, T) ,public void writeValue(com.alibaba.fastjson2.JSONWriter, T) <variables>final non-sealed Class#RAW fieldClass,final non-sealed java.lang.reflect.Type fieldType,volatile ObjectWriter#RAW objectWriter,final non-sealed boolean refDetect