XmlBefore
Require this property to be serialized before other (sibling) properties. Together XmlBefore and XmlAfter define a partial order over the properties. Using this annotation may cause values to be serialized as elements rather than attributes where not explicitly specified as attributes. If there is a conflict between serialization type (attribute/element) this takes precendence over this attribute. The names are the serialNames of the properties being serialized (not XML names).
See also
Properties
Link copied to clipboard
The serial names of all the children that should be serialized after this one (uses the kotlinx.serialization.SerialName value or field name).