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.Collections.Generic; 6 using System.Text.Json.Serialization; 7 using Microsoft.CmdPal.Ext.Apps.State; 8 9 namespace Microsoft.CmdPal.Ext.Apps; 10 11 [JsonSerializable(typeof(string))] 12 [JsonSerializable(typeof(PinnedApps))] 13 [JsonSerializable(typeof(List<string>), TypeInfoPropertyName = "StringList")] 14 [JsonSourceGenerationOptions(UseStringEnumConverter = true, WriteIndented = true, IncludeFields = true, PropertyNameCaseInsensitive = true, AllowTrailingCommas = true)] 15 internal sealed partial class JsonSerializationContext : JsonSerializerContext 16 { 17 }