| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System.Text.Json; |
| | 9 | | using Azure.Core; |
| | 10 | |
|
| | 11 | | namespace Azure.ResourceManager.Storage.Models |
| | 12 | | { |
| | 13 | | public partial class DateAfterModification : IUtf8JsonSerializable |
| | 14 | | { |
| | 15 | | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) |
| | 16 | | { |
| 16 | 17 | | writer.WriteStartObject(); |
| 16 | 18 | | writer.WritePropertyName("daysAfterModificationGreaterThan"); |
| 16 | 19 | | writer.WriteNumberValue(DaysAfterModificationGreaterThan); |
| 16 | 20 | | writer.WriteEndObject(); |
| 16 | 21 | | } |
| | 22 | |
|
| | 23 | | internal static DateAfterModification DeserializeDateAfterModification(JsonElement element) |
| | 24 | | { |
| 32 | 25 | | float daysAfterModificationGreaterThan = default; |
| 128 | 26 | | foreach (var property in element.EnumerateObject()) |
| | 27 | | { |
| 32 | 28 | | if (property.NameEquals("daysAfterModificationGreaterThan")) |
| | 29 | | { |
| 32 | 30 | | daysAfterModificationGreaterThan = property.Value.GetSingle(); |
| | 31 | | continue; |
| | 32 | | } |
| | 33 | | } |
| 32 | 34 | | return new DateAfterModification(daysAfterModificationGreaterThan); |
| | 35 | | } |
| | 36 | | } |
| | 37 | | } |