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