fromJson static method
Inherited by: NetworkStatisticsEntryCall NetworkStatisticsEntryFile
Implementation
static NetworkStatisticsEntry? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
switch (json['@type']) {
case NetworkStatisticsEntryCall.constructor:
return NetworkStatisticsEntryCall.fromJson(json);
case NetworkStatisticsEntryFile.constructor:
return NetworkStatisticsEntryFile.fromJson(json);
default:
return null;
}
}