fromMap static method
override
Construct from Map.
Implementation
static NetworkStatistics? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
if (_ != CONSTRUCTOR) return null;
var extra = _map['@extra'];
var clientId = _map['@clientId'];
var since_date = _map['since_date']! as int;
var entries = List<NetworkStatisticsEntry>.from(
(_map["entries"] ?? []).map(
(e) => NetworkStatisticsEntry.fromMap(e),
),
);
return NetworkStatistics(
extra: extra,
clientId: clientId,
since_date: since_date,
entries: entries,
);
}