fromXml static method

Future<ConfigModel?> fromXml(
  1. XmlElement xml
)

Implementation

static Future<ConfigModel?> fromXml(XmlElement xml) async {
  ConfigModel? model;
  try {
    model = ConfigModel();
    model.deserialize(xml);
    model.xml = xml.toXmlString();
  } catch (e) {
    Log().debug(e.toString());
    model = null;
  }
  return model;
}