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