CacheEntry.fromJson constructor
Creates a cache entry from a JSON map.
Useful for deserializing from persistent storage.
Implementation
factory CacheEntry.fromJson(Map<String, dynamic> json) => CacheEntry(
data: _deepConvertMap(json['data'] as Map),
timestamp: DateTime.parse(json['timestamp'] as String),
ttl: json['ttl'] != null
? Duration(milliseconds: json['ttl'] as int)
: null,
);