NetworkStatisticsEntryCall.fromJson constructor

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

Parses a NetworkStatisticsEntryCall from TDLib JSON.

Implementation

factory NetworkStatisticsEntryCall.fromJson(Map<String, dynamic> json) =>
    NetworkStatisticsEntryCall(
      networkType: _readObject(json['network_type'], NetworkType.fromJson),
      sentBytes: _readInt(json['sent_bytes']),
      receivedBytes: _readInt(json['received_bytes']),
      duration: _readDouble(json['duration']),
    );