Statistics.parse constructor
Statistics.parse(
- XmlElement? element
Implementation
factory Statistics.parse(XmlElement? element) {
return Statistics(
views: int.tryParse(element?.getAttribute('views') ?? '0'),
favorites: int.tryParse(element?.getAttribute('favorites') ?? '0'),
);
}