CacheObject.fromMap constructor
CacheObject.fromMap(
- Map<String, dynamic> map
)
Implementation
CacheObject.fromMap(Map<String, dynamic> map)
: id = map[columnId] as int,
url = map[columnUrl] as String,
key = map[columnKey] as String? ?? map[columnUrl] as String,
relativePath = map[columnPath] as String,
validTill =
DateTime.fromMillisecondsSinceEpoch(map[columnValidTill] as int),
eTag = map[columnETag] as String?,
length = map[columnLength] as int?,
touched =
DateTime.fromMillisecondsSinceEpoch(map[columnTouched] as int);