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(json['network_type'] as Map<String, dynamic>?)!,
sentBytes: (json['sent_bytes'] as int?) ?? 0,
receivedBytes: (json['received_bytes'] as int?) ?? 0,
duration: (json['duration'] as num?)?.toDouble() ?? 0.0,
);
}