/ src / settings-ui / Settings.UI.Library / SndImageResizerSettings.cs
SndImageResizerSettings.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 SndImageResizerSettings
11      {
12          [JsonPropertyName("Image Resizer")]
13          public ImageResizerSettings ImageResizer { get; set; }
14  
15          public SndImageResizerSettings(ImageResizerSettings settings)
16          {
17              ImageResizer = settings;
18          }
19  
20          public string ToJsonString()
21          {
22              return JsonSerializer.Serialize(this);
23          }
24      }
25  }