toJson method

Map toJson()

Implementation

Map<dynamic, dynamic> toJson() => {
      "preloadSize": preloadSize,
      "cacheKey": cacheKey,
      "mediaSize": mediaSize,
      "preloadHeaderSize": preloadHeaderSize,
      "preloadOffset": preloadOffset,
      "cacheRanges": cacheRanges == null ? [] : List<dynamic>.from(cacheRanges!.map((x) => x.toJson())),
      "cacheState": cacheState,
      "localFilePath": localFilePath,
      "resolution": resolution,
      "maxCacheEnd": maxCacheEnd,
      "error": error?.toString(),
    };