toMap method

Map<String, dynamic> toMap({
  1. bool setTouchedToNow = true,
})

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;
}