Serializes this response entry into a Map for disk storage.
Map<String, dynamic> toMap() => { 'bytes': bytes, 'statusCode': statusCode, 'headers': headers, 'createdAt': createdAt.millisecondsSinceEpoch, };