Statistic.fromMap constructor
Implementation
factory Statistic.fromMap(Map<String, dynamic> json) {
return Statistic(
source: json,
total: json['total'] as int,
historical:
HistoricalData.fromJson(json['historical'] as Map<String, dynamic>),
);
}