toJson method

  1. @override
Map<String, dynamic> toJson([
  1. dynamic extra
])
override

Implementation

@override
Map<String, dynamic> toJson([dynamic extra]) {
  return {
    "@type": CONSTRUCTOR,
    "path": path,
    "can_be_downloaded": canBeDownloaded,
    "can_be_deleted": canBeDeleted,
    "is_downloading_active": isDownloadingActive,
    "is_downloading_completed": isDownloadingCompleted,
    "download_offset": downloadOffset,
    "downloaded_prefix_size": downloadedPrefixSize,
    "downloaded_size": downloadedSize,
  };
}