fix: 无法加载/保存数据

This commit is contained in:
denglihong2007
2025-07-13 14:33:32 +08:00
parent 63be26ef9e
commit 46ec868134
3 changed files with 19 additions and 10 deletions

View File

@@ -0,0 +1,10 @@
using System.Text.Json.Serialization;
namespace CRSim.Core.Models
{
[JsonSerializable(typeof(Json))]
[JsonSourceGenerationOptions(WriteIndented = true, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull)]
public partial class JsonContext : JsonSerializerContext
{
}
}