diff --git a/src/libs/PlayHT/Generated/PlayHT.JsonConverters.ListVoicesResponse.g.cs b/src/libs/PlayHT/Generated/PlayHT.JsonConverters.ListVoicesResponse.g.cs index b7c6b79..4e4f675 100644 --- a/src/libs/PlayHT/Generated/PlayHT.JsonConverters.ListVoicesResponse.g.cs +++ b/src/libs/PlayHT/Generated/PlayHT.JsonConverters.ListVoicesResponse.g.cs @@ -75,6 +75,7 @@ public class ListVoicesResponseJsonConverter : global::System.Text.Json.Serializ { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); listVoicesResponseVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -85,9 +86,13 @@ public class ListVoicesResponseJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (listVoicesResponseVariant1 == null && listVoicesResponseVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::PlayHT.ListVoicesResponseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::PlayHT.ListVoicesResponseVariant2).Name}"); listVoicesResponseVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/PlayHT/Generated/PlayHT.JsonConverters.StreamSpeechRequest.g.cs b/src/libs/PlayHT/Generated/PlayHT.JsonConverters.StreamSpeechRequest.g.cs index 2c87912..1e7c0e1 100644 --- a/src/libs/PlayHT/Generated/PlayHT.JsonConverters.StreamSpeechRequest.g.cs +++ b/src/libs/PlayHT/Generated/PlayHT.JsonConverters.StreamSpeechRequest.g.cs @@ -83,6 +83,7 @@ public class StreamSpeechRequestJsonConverter : global::System.Text.Json.Seriali { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::PlayHT.CreateSpeechRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::PlayHT.CreateSpeechRequest).Name}"); create = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -93,9 +94,13 @@ public class StreamSpeechRequestJsonConverter : global::System.Text.Json.Seriali catch (global::System.InvalidOperationException) { } + } + if (create == null && streamSpeechRequestVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::PlayHT.StreamSpeechRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::PlayHT.StreamSpeechRequestVariant2).Name}"); streamSpeechRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);