NetworkStatisticsEntryFile.fromJson constructor

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

Parse from a json

Implementation

factory NetworkStatisticsEntryFile.fromJson(Map<String, dynamic> json) => NetworkStatisticsEntryFile(
  fileType: json['file_type'] == null ? null : FileType.fromJson(json['file_type']),
  networkType: NetworkType.fromJson(json['network_type']),
  sentBytes: json['sent_bytes'],
  receivedBytes: json['received_bytes'],
);