/ src / settings-ui / Settings.UI.Library / OutGoingGeneralSettings.cs
OutGoingGeneralSettings.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.Text.Json;
 6  using System.Text.Json.Serialization;
 7  
 8  namespace Microsoft.PowerToys.Settings.UI.Library
 9  {
10      public class OutGoingGeneralSettings
11      {
12          [JsonPropertyName("general")]
13          public GeneralSettings GeneralSettings { get; set; }
14  
15          public OutGoingGeneralSettings()
16          {
17          }
18  
19          public OutGoingGeneralSettings(GeneralSettings generalSettings)
20          {
21              GeneralSettings = generalSettings;
22          }
23  
24          public override string ToString()
25          {
26              return JsonSerializer.Serialize(this, SettingsSerializationContext.Default.OutGoingGeneralSettings);
27          }
28      }
29  }