attributes property Null safety

LinkedHashMap<Object, String> attributes
read / write

A map holding name, value pairs for attributes of the node.

Note that attribute order needs to be stable for serialization, so we use a LinkedHashMap. Each key is a String or AttributeName.

Implementation

LinkedHashMap<Object, String> attributes = LinkedHashMap();