Dashboard.fromXML constructor
Dashboard.fromXML(
- XmlElement element
Creates dashboard from parsed XML.
Implementation
Dashboard.fromXML(XmlElement element)
: this(
id: int.tryParse(element.getAttribute('edesky_id')!),
name: element.getAttribute('name'),
category: element.getAttribute('category'),
url: element.getAttribute('edesky_url'),
nuts3Id: int.tryParse(element.getAttribute('nuts3_id') ?? ''),
nuts3Name: element.getAttribute('nuts3_name'),
nuts4Id: int.tryParse(element.getAttribute('nuts4_id') ?? ''),
nuts4Name: element.getAttribute('nuts4_name'),
ico: int.tryParse(element.getAttribute('ovm_ico') ?? ''),
abbreviation: element.getAttribute('ovm_zkratka'),
parentId: int.tryParse(element.getAttribute('parent_id') ?? ''),
parentName: element.getAttribute('parent_name'),
ruianCode: int.tryParse(element.getAttribute('ruian_kod') ?? ''),
);