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