fromXml static method
Implementation
static Distinct? fromXml(WidgetModel? parent, XmlElement xml)
{
String? id = Xml.get(node: xml, tag: 'id');
if (S.isNullOrEmpty(id)) id = S.newId();
Distinct model = Distinct
(
parent,
id : id,
enabled : Xml.get(node: xml, tag: 'enabled'),
field : Xml.get(node: xml, tag: 'field')
);
model.deserialize(xml);
return model;
}