/ src / settings-ui / Settings.UI.Library / SndLightSwitchSettings.cs
SndLightSwitchSettings.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  using Settings.UI.Library;
 8  
 9  namespace Microsoft.PowerToys.Settings.UI.Library
10  {
11      public class SndLightSwitchSettings
12      {
13          [JsonPropertyName("LightSwitch")]
14          public LightSwitchSettings Settings { get; set; }
15  
16          public SndLightSwitchSettings()
17          {
18          }
19  
20          public SndLightSwitchSettings(LightSwitchSettings settings)
21          {
22              Settings = settings;
23          }
24  
25          public string ToJsonString()
26          {
27              return JsonSerializer.Serialize(this);
28          }
29      }
30  }