JsonSerializationContext.cs
1 // Copyright (c) Microsoft Corporation 2 // The Microsoft Corporation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 5 using System; 6 using System.Collections.Generic; 7 using System.Linq; 8 using System.Text; 9 using System.Text.Json.Serialization; 10 using System.Threading.Tasks; 11 12 namespace Microsoft.CmdPal.Ext.WindowsSettings; 13 14 [JsonSerializable(typeof(float))] 15 [JsonSerializable(typeof(int))] 16 [JsonSerializable(typeof(string))] 17 [JsonSerializable(typeof(bool))] 18 [JsonSerializable(typeof(Classes.WindowsSettings))] 19 [JsonSourceGenerationOptions(UseStringEnumConverter = true, WriteIndented = true, IncludeFields = true, PropertyNameCaseInsensitive = true, AllowTrailingCommas = true)] 20 internal sealed partial class WindowsSettingsJsonSerializationContext : JsonSerializerContext 21 { 22 }