| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using System; |
| | 5 | | using System.Text.Json; |
| | 6 | | using System.Text.Json.Serialization; |
| | 7 | |
|
| | 8 | | namespace Azure.Data.AppConfiguration |
| | 9 | | { |
| | 10 | | internal class ConfigurationSettingJsonConverter : JsonConverter<ConfigurationSetting> |
| | 11 | | { |
| | 12 | | public override ConfigurationSetting Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions o |
| | 13 | | { |
| 4 | 14 | | return ConfigurationServiceSerializer.ReadSetting(ref reader); |
| | 15 | | } |
| | 16 | |
|
| | 17 | | public override void Write(Utf8JsonWriter writer, ConfigurationSetting value, JsonSerializerOptions options) |
| | 18 | | { |
| 4 | 19 | | ConfigurationServiceSerializer.WriteSetting(writer, value); |
| 4 | 20 | | } |
| | 21 | | } |
| | 22 | | } |