📄 src/Storage/NoteCacheJsonContext.cs
1 2 3 4 5 6 7 8 9 10
using System.Text.Json.Serialization;
using NotesApp.Models;

namespace NotesApp.Storage;

// Source-generated serialization avoids reflection-based System.Text.Json, which is a
// common trim-breakage source under this project's TrimMode=full.
[JsonSerializable(typeof(List<NoteCacheEntry>))]
public partial class NoteCacheJsonContext : JsonSerializerContext;