Optionalattributestype (collapsed or separated), valign, and title.
OptionalclassesManual size classes; without them QGIS picks sizes.
OptionalfontLabel font.
OptionallineLeader line symbol of a collapsed legend.
OptionalsymbolSymbol drawn at each size.
OptionaltextLabel color and alignment.
OptionaltransformerSize scale transformer, as QGIS stores it.
Legend of data-defined symbol sizes, drawn collapsed or as separate items.