DownloadedFileCounts.fromJson constructor

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

Parses a DownloadedFileCounts from TDLib JSON.

Implementation

factory DownloadedFileCounts.fromJson(Map<String, dynamic> json) =>
    DownloadedFileCounts(
      activeCount: _readInt(json['active_count']),
      pausedCount: _readInt(json['paused_count']),
      completedCount: _readInt(json['completed_count']),
    );