using System.Text.Json.Serialization; using Notify.Cli; using Notify.Ipc; using Notify.Models; namespace Notify.Serialization; // System.Text.Json 源生成:为后续 NativeAOT 准备,避免反射序列化被裁剪 [JsonSourceGenerationOptions(WriteIndented = true, UseStringEnumConverter = true)] [JsonSerializable(typeof(ToastSettings))] [JsonSerializable(typeof(StateData))] [JsonSerializable(typeof(HookInput))] [JsonSerializable(typeof(NotifyMessage))] internal partial class AppJsonContext : JsonSerializerContext;