LocalFile.fromJson constructor

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

Parse from a json

Implementation

factory LocalFile.fromJson(Map<String, dynamic> json) => LocalFile(
  path: json['path'],
  canBeDownloaded: json['can_be_downloaded'],
  canBeDeleted: json['can_be_deleted'],
  isDownloadingActive: json['is_downloading_active'],
  isDownloadingCompleted: json['is_downloading_completed'],
  downloadOffset: json['download_offset'],
  downloadedPrefixSize: json['downloaded_prefix_size'],
  downloadedSize: json['downloaded_size'],
);