| | 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.DigitalTwins.Core |
| | 12 | | { |
| | 13 | | internal partial class QuerySpecification : IUtf8JsonSerializable |
| | 14 | | { |
| | 15 | | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) |
| | 16 | | { |
| 4 | 17 | | writer.WriteStartObject(); |
| 4 | 18 | | if (Optional.IsDefined(Query)) |
| | 19 | | { |
| 4 | 20 | | writer.WritePropertyName("query"); |
| 4 | 21 | | writer.WriteStringValue(Query); |
| | 22 | | } |
| 4 | 23 | | if (Optional.IsDefined(ContinuationToken)) |
| | 24 | | { |
| 0 | 25 | | writer.WritePropertyName("continuationToken"); |
| 0 | 26 | | writer.WriteStringValue(ContinuationToken); |
| | 27 | | } |
| 4 | 28 | | writer.WriteEndObject(); |
| 4 | 29 | | } |
| | 30 | | } |
| | 31 | | } |