/ src / settings-ui / Settings.UI.Library / AdvancedPasteCustomActions.cs
AdvancedPasteCustomActions.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.ObjectModel;
 6  using System.Text.Json;
 7  using System.Text.Json.Serialization;
 8  
 9  namespace Microsoft.PowerToys.Settings.UI.Library;
10  
11  public sealed class AdvancedPasteCustomActions
12  {
13      private static readonly JsonSerializerOptions _serializerOptions = new(SettingsSerializationContext.Default.Options)
14      {
15          WriteIndented = true,
16      };
17  
18      [JsonPropertyName("value")]
19      public ObservableCollection<AdvancedPasteCustomAction> Value { get; set; } = [];
20  
21      public AdvancedPasteCustomActions()
22      {
23      }
24  
25      public string ToJsonString() => JsonSerializer.Serialize(this, _serializerOptions);
26  }