SndPowerOcrSettings.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 SndPowerOcrSettings 11 { 12 [JsonPropertyName("TextExtractor")] 13 public PowerOcrSettings Settings { get; set; } 14 15 public SndPowerOcrSettings() 16 { 17 } 18 19 public SndPowerOcrSettings(PowerOcrSettings settings) 20 { 21 Settings = settings; 22 } 23 24 public string ToJsonString() 25 { 26 return JsonSerializer.Serialize(this); 27 } 28 } 29 }