deserialize method
Deserializes the FML template elements, attributes and children
Implementation
@override
void deserialize(XmlElement xml)
{
// deserialize
super.deserialize(xml);
// properties
bordercolor = Xml.get(node: xml, tag: 'bordercolor');
borderwidth = Xml.get(node: xml, tag: 'borderwidth');
///////////////
/* Get Cells */
///////////////
List<TableHeaderCellModel> cells = findChildrenOfExactType(TableHeaderCellModel).cast<TableHeaderCellModel>();
for (TableHeaderCellModel model in cells) {
this.cells.add(model);
}
////////////////
/* Prototype? */
////////////////
if ((cells.length == 1) && (cells[0].element!.toXmlString().contains("{field}"))) prototype = cells[0].element!.copy();
}