@CheckForNull
    default CNode describeStructure(T instance, ConfigurationContext context) {
        Mapping mapping = new Mapping();
        for (Attribute attribute : getAttributes()) {
            if (context.getMode().equals("JSONSchema")) {
                attribute.setJsonSchema(true);
            }
            CNode value = attribute.describeForSchema(instance, context);
            if (value != null) {
                mapping.put(attribute.getName(), attribute.getType().getSimpleName());
            }
        }
        return mapping;
    }
Describe Structure of the attributes, as required by the schema.
@param instance
     Object whose attributes will be described.
@param context
     Fully configured Jenkins object used as the starting point for this configuration.
@since 1.35
@return CNode describing the attributes.
plugin/src/main/java/io/jenkins/plugins/casc/Configurator.java