Statistics.parse constructor

Statistics.parse(
  1. XmlElement? element
)

Implementation

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