NetworkStatisticsEntry.fromJson constructor
a NetworkStatisticsEntry return type can be :
Implementation
factory NetworkStatisticsEntry.fromJson(Map<String, dynamic> json) {
switch(json["@type"]) {
case NetworkStatisticsEntryFile.CONSTRUCTOR:
return NetworkStatisticsEntryFile.fromJson(json);
case NetworkStatisticsEntryCall.CONSTRUCTOR:
return NetworkStatisticsEntryCall.fromJson(json);
default:
return const NetworkStatisticsEntry();
}
}