fromJson static method
Implementation
static NetworkStatistics? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return NetworkStatistics(
sinceDate: (json['since_date'] as int?) ?? 0,
entries: List<NetworkStatisticsEntry>.from(
tdListFromJson(json['entries'])
.map((item) => NetworkStatisticsEntry.fromJson(tdMapFromJson(item)))
.whereType<NetworkStatisticsEntry>(),
),
);
}