OptionalattributesOther attributes, such as patch_size, legend_exp, and legend_split_behavior.
Layer reference check state. Parent group states also affect visibility.
OptionalcustomPlugin and application properties stored with the node.
Whether the node is expanded in the layer tree.
Referenced QgsMapLayerBase.id. The node's name, source, and provider are written from that layer; a reference to a layer outside the project keeps them as stored.
OptionalpatchLegend patch shape: type, wkt, and preserveAspect.
Discriminant for a layer reference.
Tree node referencing a project layer by ID.