fromJson static method
Inherited by: NetworkStatisticsEntryCall NetworkStatisticsEntryFile
Implementation
static NetworkStatisticsEntryCall? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return NetworkStatisticsEntryCall(
networkType: NetworkType.fromJson(tdMapFromJson(json['network_type'])),
sentBytes: (json['sent_bytes'] as int?) ?? 0,
receivedBytes: (json['received_bytes'] as int?) ?? 0,
duration: ((json['duration'] as num?) ?? 0.0).toDouble(),
);
}