Skip to content

Commit bcac7d1

Browse files
committed
regen: value type properties
1 parent 5bbba40 commit bcac7d1

File tree

494 files changed

+0
-1056
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

494 files changed

+0
-1056
lines changed

samples/AppConfiguration/Generated/Models/Error.Serialization.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ internal static Error DeserializeError(JsonElement element)
4545
{
4646
if (property.Value.ValueKind == JsonValueKind.Null)
4747
{
48-
property.ThrowNonNullablePropertyIsNull();
4948
continue;
5049
}
5150
status = property.Value.GetInt32();

samples/AppConfiguration/Generated/Models/KeyValue.Serialization.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ internal static KeyValue DeserializeKeyValue(JsonElement element)
102102
{
103103
if (property.Value.ValueKind == JsonValueKind.Null)
104104
{
105-
property.ThrowNonNullablePropertyIsNull();
106105
continue;
107106
}
108107
lastModified = property.Value.GetDateTimeOffset("O");
@@ -126,7 +125,6 @@ internal static KeyValue DeserializeKeyValue(JsonElement element)
126125
{
127126
if (property.Value.ValueKind == JsonValueKind.Null)
128127
{
129-
property.ThrowNonNullablePropertyIsNull();
130128
continue;
131129
}
132130
locked = property.Value.GetBoolean();

samples/Azure.AI.FormRecognizer/Generated/Models/DataTableCell.Serialization.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ internal static DataTableCell DeserializeDataTableCell(JsonElement element)
4141
{
4242
if (property.Value.ValueKind == JsonValueKind.Null)
4343
{
44-
property.ThrowNonNullablePropertyIsNull();
4544
continue;
4645
}
4746
rowSpan = property.Value.GetInt32();
@@ -51,7 +50,6 @@ internal static DataTableCell DeserializeDataTableCell(JsonElement element)
5150
{
5251
if (property.Value.ValueKind == JsonValueKind.Null)
5352
{
54-
property.ThrowNonNullablePropertyIsNull();
5553
continue;
5654
}
5755
columnSpan = property.Value.GetInt32();
@@ -95,7 +93,6 @@ internal static DataTableCell DeserializeDataTableCell(JsonElement element)
9593
{
9694
if (property.Value.ValueKind == JsonValueKind.Null)
9795
{
98-
property.ThrowNonNullablePropertyIsNull();
9996
continue;
10097
}
10198
isHeader = property.Value.GetBoolean();
@@ -105,7 +102,6 @@ internal static DataTableCell DeserializeDataTableCell(JsonElement element)
105102
{
106103
if (property.Value.ValueKind == JsonValueKind.Null)
107104
{
108-
property.ThrowNonNullablePropertyIsNull();
109105
continue;
110106
}
111107
isFooter = property.Value.GetBoolean();

samples/Azure.AI.FormRecognizer/Generated/Models/FieldValue.Serialization.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ internal static FieldValue DeserializeFieldValue(JsonElement element)
4646
{
4747
if (property.Value.ValueKind == JsonValueKind.Null)
4848
{
49-
property.ThrowNonNullablePropertyIsNull();
5049
continue;
5150
}
5251
valueDate = property.Value.GetDateTimeOffset("D");
@@ -56,7 +55,6 @@ internal static FieldValue DeserializeFieldValue(JsonElement element)
5655
{
5756
if (property.Value.ValueKind == JsonValueKind.Null)
5857
{
59-
property.ThrowNonNullablePropertyIsNull();
6058
continue;
6159
}
6260
valueTime = property.Value.GetTimeSpan("T");
@@ -71,7 +69,6 @@ internal static FieldValue DeserializeFieldValue(JsonElement element)
7169
{
7270
if (property.Value.ValueKind == JsonValueKind.Null)
7371
{
74-
property.ThrowNonNullablePropertyIsNull();
7572
continue;
7673
}
7774
valueNumber = property.Value.GetSingle();
@@ -81,7 +78,6 @@ internal static FieldValue DeserializeFieldValue(JsonElement element)
8178
{
8279
if (property.Value.ValueKind == JsonValueKind.Null)
8380
{
84-
property.ThrowNonNullablePropertyIsNull();
8581
continue;
8682
}
8783
valueInteger = property.Value.GetInt32();
@@ -138,7 +134,6 @@ internal static FieldValue DeserializeFieldValue(JsonElement element)
138134
{
139135
if (property.Value.ValueKind == JsonValueKind.Null)
140136
{
141-
property.ThrowNonNullablePropertyIsNull();
142137
continue;
143138
}
144139
confidence = property.Value.GetSingle();
@@ -162,7 +157,6 @@ internal static FieldValue DeserializeFieldValue(JsonElement element)
162157
{
163158
if (property.Value.ValueKind == JsonValueKind.Null)
164159
{
165-
property.ThrowNonNullablePropertyIsNull();
166160
continue;
167161
}
168162
page = property.Value.GetInt32();

samples/Azure.AI.FormRecognizer/Generated/Models/PageResult.Serialization.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ internal static PageResult DeserializePageResult(JsonElement element)
3030
{
3131
if (property.Value.ValueKind == JsonValueKind.Null)
3232
{
33-
property.ThrowNonNullablePropertyIsNull();
3433
continue;
3534
}
3635
clusterId = property.Value.GetInt32();

samples/Azure.AI.FormRecognizer/Generated/Models/ReadResult.Serialization.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ internal static ReadResult DeserializeReadResult(JsonElement element)
5353
{
5454
if (property.Value.ValueKind == JsonValueKind.Null)
5555
{
56-
property.ThrowNonNullablePropertyIsNull();
5756
continue;
5857
}
5958
language = new Language(property.Value.GetString());

samples/Azure.AI.FormRecognizer/Generated/Models/TextLine.Serialization.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ internal static TextLine DeserializeTextLine(JsonElement element)
4040
{
4141
if (property.Value.ValueKind == JsonValueKind.Null)
4242
{
43-
property.ThrowNonNullablePropertyIsNull();
4443
continue;
4544
}
4645
language = new Language(property.Value.GetString());

samples/Azure.AI.FormRecognizer/Generated/Models/TextWord.Serialization.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ internal static TextWord DeserializeTextWord(JsonElement element)
3939
{
4040
if (property.Value.ValueKind == JsonValueKind.Null)
4141
{
42-
property.ThrowNonNullablePropertyIsNull();
4342
continue;
4443
}
4544
confidence = property.Value.GetSingle();

samples/Azure.AI.FormRecognizer/Generated/Models/TrainResult.Serialization.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ internal static TrainResult DeserializeTrainResult(JsonElement element)
4949
{
5050
if (property.Value.ValueKind == JsonValueKind.Null)
5151
{
52-
property.ThrowNonNullablePropertyIsNull();
5352
continue;
5453
}
5554
averageModelAccuracy = property.Value.GetSingle();

samples/Azure.Management.Storage/Generated/Models/AccessPolicy.Serialization.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ internal static AccessPolicy DeserializeAccessPolicy(JsonElement element)
4545
{
4646
if (property.Value.ValueKind == JsonValueKind.Null)
4747
{
48-
property.ThrowNonNullablePropertyIsNull();
4948
continue;
5049
}
5150
startTime = property.Value.GetDateTimeOffset("O");
@@ -55,7 +54,6 @@ internal static AccessPolicy DeserializeAccessPolicy(JsonElement element)
5554
{
5655
if (property.Value.ValueKind == JsonValueKind.Null)
5756
{
58-
property.ThrowNonNullablePropertyIsNull();
5957
continue;
6058
}
6159
expiryTime = property.Value.GetDateTimeOffset("O");

0 commit comments

Comments
 (0)