Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class FlatPricePerMonthActorPricingInfoJsonConverter : global::System.Tex
if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; }

global::Apify.CommonActorPricingInfo? commonActorPricingInfo = default;
global::Apify.FlatPricePerMonthActorPricingInfoVariant2? value2 = default;
global::Apify.FlatPricePerMonthActorPricingInfoVariant2? flatPricePerMonthActorPricingInfoVariant2 = default;
if (__bestIndex >= 0)
{
if (__bestIndex == 0)
Expand All @@ -67,7 +67,7 @@ public class FlatPricePerMonthActorPricingInfoJsonConverter : global::System.Tex
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.FlatPricePerMonthActorPricingInfoVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Apify.FlatPricePerMonthActorPricingInfoVariant2> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.FlatPricePerMonthActorPricingInfoVariant2).Name}");
value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
flatPricePerMonthActorPricingInfoVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
Expand All @@ -78,7 +78,7 @@ public class FlatPricePerMonthActorPricingInfoJsonConverter : global::System.Tex
}
}

if (commonActorPricingInfo == null && value2 == null)
if (commonActorPricingInfo == null && flatPricePerMonthActorPricingInfoVariant2 == null)
{
try
{
Expand All @@ -97,7 +97,7 @@ public class FlatPricePerMonthActorPricingInfoJsonConverter : global::System.Tex
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.FlatPricePerMonthActorPricingInfoVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Apify.FlatPricePerMonthActorPricingInfoVariant2> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.FlatPricePerMonthActorPricingInfoVariant2).Name}");
value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
flatPricePerMonthActorPricingInfoVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
Expand All @@ -110,7 +110,7 @@ public class FlatPricePerMonthActorPricingInfoJsonConverter : global::System.Tex
var __value = new global::Apify.FlatPricePerMonthActorPricingInfo(
commonActorPricingInfo,

value2
flatPricePerMonthActorPricingInfoVariant2
);

return __value;
Expand All @@ -131,11 +131,11 @@ public override void Write(
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.CommonActorPricingInfo).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.CommonActorPricingInfo!, typeInfo);
}
else if (value.IsValue2)
else if (value.IsFlatPricePerMonthActorPricingInfoVariant2)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.FlatPricePerMonthActorPricingInfoVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Apify.FlatPricePerMonthActorPricingInfoVariant2?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.FlatPricePerMonthActorPricingInfoVariant2).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.FlatPricePerMonthActorPricingInfoVariant2!, typeInfo);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class FreeActorPricingInfoJsonConverter : global::System.Text.Json.Serial
if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; }

global::Apify.CommonActorPricingInfo? commonActorPricingInfo = default;
global::Apify.FreeActorPricingInfoVariant2? value2 = default;
global::Apify.FreeActorPricingInfoVariant2? freeActorPricingInfoVariant2 = default;
if (__bestIndex >= 0)
{
if (__bestIndex == 0)
Expand All @@ -65,7 +65,7 @@ public class FreeActorPricingInfoJsonConverter : global::System.Text.Json.Serial
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.FreeActorPricingInfoVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Apify.FreeActorPricingInfoVariant2> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.FreeActorPricingInfoVariant2).Name}");
value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
freeActorPricingInfoVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
Expand All @@ -76,7 +76,7 @@ public class FreeActorPricingInfoJsonConverter : global::System.Text.Json.Serial
}
}

if (commonActorPricingInfo == null && value2 == null)
if (commonActorPricingInfo == null && freeActorPricingInfoVariant2 == null)
{
try
{
Expand All @@ -95,7 +95,7 @@ public class FreeActorPricingInfoJsonConverter : global::System.Text.Json.Serial
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.FreeActorPricingInfoVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Apify.FreeActorPricingInfoVariant2> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.FreeActorPricingInfoVariant2).Name}");
value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
freeActorPricingInfoVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
Expand All @@ -108,7 +108,7 @@ public class FreeActorPricingInfoJsonConverter : global::System.Text.Json.Serial
var __value = new global::Apify.FreeActorPricingInfo(
commonActorPricingInfo,

value2
freeActorPricingInfoVariant2
);

return __value;
Expand All @@ -129,11 +129,11 @@ public override void Write(
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.CommonActorPricingInfo).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.CommonActorPricingInfo!, typeInfo);
}
else if (value.IsValue2)
else if (value.IsFreeActorPricingInfoVariant2)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.FreeActorPricingInfoVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Apify.FreeActorPricingInfoVariant2?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.FreeActorPricingInfoVariant2).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.FreeActorPricingInfoVariant2!, typeInfo);
}
}
}
Expand Down
14 changes: 7 additions & 7 deletions src/libs/Apify/Generated/Apify.JsonConverters.ListOfActors.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class ListOfActorsJsonConverter : global::System.Text.Json.Serialization.
if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; }

global::Apify.PaginationResponse? paginationResponse = default;
global::Apify.ListOfActorsVariant2? value2 = default;
global::Apify.ListOfActorsVariant2? listOfActorsVariant2 = default;
if (__bestIndex >= 0)
{
if (__bestIndex == 0)
Expand All @@ -64,7 +64,7 @@ public class ListOfActorsJsonConverter : global::System.Text.Json.Serialization.
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.ListOfActorsVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Apify.ListOfActorsVariant2> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.ListOfActorsVariant2).Name}");
value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
listOfActorsVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
Expand All @@ -75,7 +75,7 @@ public class ListOfActorsJsonConverter : global::System.Text.Json.Serialization.
}
}

if (paginationResponse == null && value2 == null)
if (paginationResponse == null && listOfActorsVariant2 == null)
{
try
{
Expand All @@ -94,7 +94,7 @@ public class ListOfActorsJsonConverter : global::System.Text.Json.Serialization.
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.ListOfActorsVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Apify.ListOfActorsVariant2> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.ListOfActorsVariant2).Name}");
value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
listOfActorsVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
Expand All @@ -107,7 +107,7 @@ public class ListOfActorsJsonConverter : global::System.Text.Json.Serialization.
var __value = new global::Apify.ListOfActors(
paginationResponse,

value2
listOfActorsVariant2
);

return __value;
Expand All @@ -128,11 +128,11 @@ public override void Write(
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.PaginationResponse).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.PaginationResponse!, typeInfo);
}
else if (value.IsValue2)
else if (value.IsListOfActorsVariant2)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.ListOfActorsVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Apify.ListOfActorsVariant2?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.ListOfActorsVariant2).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.ListOfActorsVariant2!, typeInfo);
}
}
}
Expand Down
14 changes: 7 additions & 7 deletions src/libs/Apify/Generated/Apify.JsonConverters.ListOfBuilds.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class ListOfBuildsJsonConverter : global::System.Text.Json.Serialization.
if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; }

global::Apify.PaginationResponse? paginationResponse = default;
global::Apify.ListOfBuildsVariant2? value2 = default;
global::Apify.ListOfBuildsVariant2? listOfBuildsVariant2 = default;
if (__bestIndex >= 0)
{
if (__bestIndex == 0)
Expand All @@ -64,7 +64,7 @@ public class ListOfBuildsJsonConverter : global::System.Text.Json.Serialization.
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.ListOfBuildsVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Apify.ListOfBuildsVariant2> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.ListOfBuildsVariant2).Name}");
value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
listOfBuildsVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
Expand All @@ -75,7 +75,7 @@ public class ListOfBuildsJsonConverter : global::System.Text.Json.Serialization.
}
}

if (paginationResponse == null && value2 == null)
if (paginationResponse == null && listOfBuildsVariant2 == null)
{
try
{
Expand All @@ -94,7 +94,7 @@ public class ListOfBuildsJsonConverter : global::System.Text.Json.Serialization.
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.ListOfBuildsVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Apify.ListOfBuildsVariant2> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.ListOfBuildsVariant2).Name}");
value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
listOfBuildsVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
Expand All @@ -107,7 +107,7 @@ public class ListOfBuildsJsonConverter : global::System.Text.Json.Serialization.
var __value = new global::Apify.ListOfBuilds(
paginationResponse,

value2
listOfBuildsVariant2
);

return __value;
Expand All @@ -128,11 +128,11 @@ public override void Write(
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.PaginationResponse).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.PaginationResponse!, typeInfo);
}
else if (value.IsValue2)
else if (value.IsListOfBuildsVariant2)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.ListOfBuildsVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Apify.ListOfBuildsVariant2?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.ListOfBuildsVariant2).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.ListOfBuildsVariant2!, typeInfo);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class ListOfDatasetsJsonConverter : global::System.Text.Json.Serializatio
if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; }

global::Apify.PaginationResponse? paginationResponse = default;
global::Apify.ListOfDatasetsVariant2? value2 = default;
global::Apify.ListOfDatasetsVariant2? listOfDatasetsVariant2 = default;
if (__bestIndex >= 0)
{
if (__bestIndex == 0)
Expand All @@ -64,7 +64,7 @@ public class ListOfDatasetsJsonConverter : global::System.Text.Json.Serializatio
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.ListOfDatasetsVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Apify.ListOfDatasetsVariant2> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.ListOfDatasetsVariant2).Name}");
value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
listOfDatasetsVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
Expand All @@ -75,7 +75,7 @@ public class ListOfDatasetsJsonConverter : global::System.Text.Json.Serializatio
}
}

if (paginationResponse == null && value2 == null)
if (paginationResponse == null && listOfDatasetsVariant2 == null)
{
try
{
Expand All @@ -94,7 +94,7 @@ public class ListOfDatasetsJsonConverter : global::System.Text.Json.Serializatio
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.ListOfDatasetsVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Apify.ListOfDatasetsVariant2> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.ListOfDatasetsVariant2).Name}");
value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
listOfDatasetsVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
}
catch (global::System.Text.Json.JsonException)
{
Expand All @@ -107,7 +107,7 @@ public class ListOfDatasetsJsonConverter : global::System.Text.Json.Serializatio
var __value = new global::Apify.ListOfDatasets(
paginationResponse,

value2
listOfDatasetsVariant2
);

return __value;
Expand All @@ -128,11 +128,11 @@ public override void Write(
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.PaginationResponse).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.PaginationResponse!, typeInfo);
}
else if (value.IsValue2)
else if (value.IsListOfDatasetsVariant2)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Apify.ListOfDatasetsVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Apify.ListOfDatasetsVariant2?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Apify.ListOfDatasetsVariant2).Name}");
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo);
global::System.Text.Json.JsonSerializer.Serialize(writer, value.ListOfDatasetsVariant2!, typeInfo);
}
}
}
Expand Down
Loading