Statistics.parse constructor

Statistics.parse(
  1. XmlElement? element
)

Parse constructor for the Statistics class, used when 'parsing' a feed

Implementation

factory Statistics.parse(XmlElement? element) => Statistics(
      views: int.tryParse(element?.getAttribute('views') ?? '0'),
      favorites: int.tryParse(element?.getAttribute('favorites') ?? '0'),
    );