fromXml static method
Implementation
static PaddingModel? fromXml(WidgetModel parent, XmlElement xml) {
PaddingModel? model;
try
{
// build model
model = PaddingModel(parent, Xml.get(node: xml, tag: 'id'));
model.deserialize(xml);
}
catch(e)
{
Log().exception(e, caller: 'padding.Model');
model = null;
}
return model;
}