NetworkStatisticsEntryFile.fromMap constructor

NetworkStatisticsEntryFile.fromMap(
  1. Map<String, dynamic> map
)

Implementation

NetworkStatisticsEntryFile.fromMap(Map<String, dynamic> map) {
  extra = map['@extra'];
  client_id = map['@client_id'];
  if (map['file_type'] != null) {
    file_type = TdApiMap.fromMap(map['file_type']) as FileType;
  }
  if (map['network_type'] != null) {
    network_type = TdApiMap.fromMap(map['network_type']) as NetworkType;
  }
  sent_bytes = map['sent_bytes'];
  received_bytes = map['received_bytes'];
}