deserialize method
Deserializes the FML template elements, attributes and children
Implementation
@override
void deserialize(XmlElement xml)
{
// deserialize
super.deserialize(xml);
// sort the children
children?.sort((a, b)
{
if(a.depth != null && b.depth != null) return a.depth?.compareTo(b.depth!) ?? 0;
return 0;
});
}