NetworkStatisticsEntry.fromJson constructor

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

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();
  }
}