FoundFileDownloads.fromJson constructor
Parses a FoundFileDownloads from TDLib JSON.
Implementation
factory FoundFileDownloads.fromJson(Map<String, dynamic> json) =>
FoundFileDownloads(
totalCounts: _readObject(
json['total_counts'],
DownloadedFileCounts.fromJson,
),
files: _readList<FileDownload>(
json['files'],
(e) => _readObject(e, FileDownload.fromJson),
),
nextOffset: _readString(json['next_offset']),
extra: json['@extra'],
clientId: _readClientId(json['@client_id']),
);