NetworkStatistics.fromJson constructor

NetworkStatistics.fromJson(
  1. Map<String, dynamic> json
)

Parse from a json

Implementation

factory NetworkStatistics.fromJson(Map<String, dynamic> json) =>
    NetworkStatistics(
      sinceDate: json['since_date'],
      entries: List<NetworkStatisticsEntry>.from((json['entries'] ?? [])
          .map((item) => NetworkStatisticsEntry.fromJson(item))
          .toList()),
      extra: json['@extra'],
      clientId: json['@client_id'],
    );