toMap method
Implementation
Map<String, dynamic> toMap({bool setTouchedToNow = true}) {
final map = <String, dynamic>{
columnUrl: url,
columnKey: key,
columnPath: relativePath,
columnETag: eTag,
columnValidTill: validTill.millisecondsSinceEpoch,
columnTouched:
(setTouchedToNow ? clock.now() : touched)?.millisecondsSinceEpoch ??
0,
columnLength: length,
if (id != null) columnId: id,
};
return map;
}