fromXml static method

CardModel? fromXml(
  1. WidgetModel parent,
  2. XmlElement xml
)
override

Implementation

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