FoundFileDownloads.fromJson constructor

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

Parse from a json

Implementation

factory FoundFileDownloads.fromJson(Map<String, dynamic> json) =>
    FoundFileDownloads(
      totalCounts: DownloadedFileCounts.fromJson(json['total_counts']),
      files: List<FileDownload>.from((json['files'] ?? [])
          .map((item) => FileDownload.fromJson(item))
          .toList()),
      nextOffset: json['next_offset'],
      extra: json['@extra'],
      clientId: json['@client_id'],
    );