VaultSmpInstaller/Data/JsonContext.cs

16 lines
549 B
C#

using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace VaultSmpInstaller.Data;
[JsonSourceGenerationOptions(WriteIndented = true, UnmappedMemberHandling = JsonUnmappedMemberHandling.Skip)]
[JsonSerializable(typeof(InstanceConfig))]
[JsonSerializable(typeof(ModProfile))]
[JsonSerializable(typeof(string))]
[JsonSerializable(typeof(bool))]
[JsonSerializable(typeof(Dictionary<string, string>))]
[JsonSerializable(typeof(Dictionary<string, ModProfile>))]
public partial class JsonContext: JsonSerializerContext
{
}