toMap method
Serializes this metadata to a Map for Hive storage.
Implementation
Map<String, dynamic> toMap() {
return {
'url': url,
'relativePath': relativePath,
'validTill': validTill.millisecondsSinceEpoch,
'eTag': eTag,
'length': length,
if (touchedAt != null) 'touchedAt': touchedAt!.millisecondsSinceEpoch,
};
}