toJson method

Map<String, dynamic> toJson()

Convert to JSON

Implementation

Map<String, dynamic> toJson() {
  return {
    'url': url,
    'sizeInBytes': sizeInBytes,
    'timestamp': timestamp.toIso8601String(),
    'cacheKey': cacheKey,
  };
}