diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.AudioEnhancement.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.AudioEnhancement.g.cs index b3665b3..98ffe70 100644 --- a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.AudioEnhancement.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.AudioEnhancement.g.cs @@ -66,6 +66,7 @@ public class AudioEnhancementJsonConverter : global::System.Text.Json.Serializat { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.DolbyEnhancement), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.DolbyEnhancement).Name}"); dolby = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.Destinations.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.Destinations.g.cs index c24012d..348940e 100644 --- a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.Destinations.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.Destinations.g.cs @@ -254,6 +254,7 @@ public class DestinationsJsonConverter : global::System.Text.Json.Serialization. { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.ShotstackDestination), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.ShotstackDestination).Name}"); shotstackDestination = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -264,9 +265,13 @@ public class DestinationsJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (shotstackDestination == null && muxDestination == null && s3Destination == null && googleCloudStorageDestination == null && googleDriveDestination == null && vimeoDestination == null && tiktokDestination == null && akamaiNetStorageDestination == null && azureBlobStorageDestination == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.MuxDestination), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.MuxDestination).Name}"); muxDestination = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -277,9 +282,13 @@ public class DestinationsJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (shotstackDestination == null && muxDestination == null && s3Destination == null && googleCloudStorageDestination == null && googleDriveDestination == null && vimeoDestination == null && tiktokDestination == null && akamaiNetStorageDestination == null && azureBlobStorageDestination == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.S3Destination), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.S3Destination).Name}"); s3Destination = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -290,9 +299,13 @@ public class DestinationsJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (shotstackDestination == null && muxDestination == null && s3Destination == null && googleCloudStorageDestination == null && googleDriveDestination == null && vimeoDestination == null && tiktokDestination == null && akamaiNetStorageDestination == null && azureBlobStorageDestination == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.GoogleCloudStorageDestination), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.GoogleCloudStorageDestination).Name}"); googleCloudStorageDestination = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -303,9 +316,13 @@ public class DestinationsJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (shotstackDestination == null && muxDestination == null && s3Destination == null && googleCloudStorageDestination == null && googleDriveDestination == null && vimeoDestination == null && tiktokDestination == null && akamaiNetStorageDestination == null && azureBlobStorageDestination == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.GoogleDriveDestination), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.GoogleDriveDestination).Name}"); googleDriveDestination = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -316,9 +333,13 @@ public class DestinationsJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (shotstackDestination == null && muxDestination == null && s3Destination == null && googleCloudStorageDestination == null && googleDriveDestination == null && vimeoDestination == null && tiktokDestination == null && akamaiNetStorageDestination == null && azureBlobStorageDestination == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.VimeoDestination), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.VimeoDestination).Name}"); vimeoDestination = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -329,9 +350,13 @@ public class DestinationsJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (shotstackDestination == null && muxDestination == null && s3Destination == null && googleCloudStorageDestination == null && googleDriveDestination == null && vimeoDestination == null && tiktokDestination == null && akamaiNetStorageDestination == null && azureBlobStorageDestination == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.TiktokDestination), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.TiktokDestination).Name}"); tiktokDestination = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -342,9 +367,13 @@ public class DestinationsJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (shotstackDestination == null && muxDestination == null && s3Destination == null && googleCloudStorageDestination == null && googleDriveDestination == null && vimeoDestination == null && tiktokDestination == null && akamaiNetStorageDestination == null && azureBlobStorageDestination == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.AkamaiNetStorageDestination), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.AkamaiNetStorageDestination).Name}"); akamaiNetStorageDestination = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -355,9 +384,13 @@ public class DestinationsJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (shotstackDestination == null && muxDestination == null && s3Destination == null && googleCloudStorageDestination == null && googleDriveDestination == null && vimeoDestination == null && tiktokDestination == null && akamaiNetStorageDestination == null && azureBlobStorageDestination == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Shotstack.AzureBlobStorageDestination), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Shotstack.AzureBlobStorageDestination).Name}"); azureBlobStorageDestination = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.OneOf2.g.cs b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.OneOf2.g.cs index 2a41687..6f7888b 100644 --- a/src/libs/Shotstack/Generated/Shotstack.JsonConverters.OneOf2.g.cs +++ b/src/libs/Shotstack/Generated/Shotstack.JsonConverters.OneOf2.g.cs @@ -107,7 +107,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null) + { try {