CacheEntry.fromJson constructor

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

Create from JSON

Implementation

factory CacheEntry.fromJson(Map<String, dynamic> json) => CacheEntry(
  content: json['content'] as String,
  cachedAt: DateTime.parse(json['cachedAt'] as String),
  expiresAt: DateTime.parse(json['expiresAt'] as String),
  url: json['url'] as String,
);