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 @@ -2,7 +2,7 @@

namespace Browserbase
{
public readonly partial struct AnyOf<T1, T2, T3, T4, T5, T6>
public readonly partial struct AnyOf<T1, T2, T3, T4, T5>
{
/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
Expand Down Expand Up @@ -34,14 +34,14 @@ public string ToJson(
/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerContext.
/// </summary>
public static global::Browserbase.AnyOf<T1, T2, T3, T4, T5, T6>? FromJson(
public static global::Browserbase.AnyOf<T1, T2, T3, T4, T5>? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::Browserbase.AnyOf<T1, T2, T3, T4, T5, T6>),
jsonSerializerContext) as global::Browserbase.AnyOf<T1, T2, T3, T4, T5, T6>?;
typeof(global::Browserbase.AnyOf<T1, T2, T3, T4, T5>),
jsonSerializerContext) as global::Browserbase.AnyOf<T1, T2, T3, T4, T5>?;
}

/// <summary>
Expand All @@ -51,26 +51,26 @@ public string ToJson(
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public static global::Browserbase.AnyOf<T1, T2, T3, T4, T5, T6>? FromJson(
public static global::Browserbase.AnyOf<T1, T2, T3, T4, T5>? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::Browserbase.AnyOf<T1, T2, T3, T4, T5, T6>>(
return global::System.Text.Json.JsonSerializer.Deserialize<global::Browserbase.AnyOf<T1, T2, T3, T4, T5>>(
json,
jsonSerializerOptions);
}

/// <summary>
/// Deserializes a JSON stream using the provided JsonSerializerContext.
/// </summary>
public static async global::System.Threading.Tasks.ValueTask<global::Browserbase.AnyOf<T1, T2, T3, T4, T5, T6>?> FromJsonStreamAsync(
public static async global::System.Threading.Tasks.ValueTask<global::Browserbase.AnyOf<T1, T2, T3, T4, T5>?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
typeof(global::Browserbase.AnyOf<T1, T2, T3, T4, T5, T6>),
jsonSerializerContext).ConfigureAwait(false)) as global::Browserbase.AnyOf<T1, T2, T3, T4, T5, T6>?;
typeof(global::Browserbase.AnyOf<T1, T2, T3, T4, T5>),
jsonSerializerContext).ConfigureAwait(false)) as global::Browserbase.AnyOf<T1, T2, T3, T4, T5>?;
}

/// <summary>
Expand All @@ -80,11 +80,11 @@ public string ToJson(
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public static global::System.Threading.Tasks.ValueTask<global::Browserbase.AnyOf<T1, T2, T3, T4, T5, T6>?> FromJsonStreamAsync(
public static global::System.Threading.Tasks.ValueTask<global::Browserbase.AnyOf<T1, T2, T3, T4, T5>?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::Browserbase.AnyOf<T1, T2, T3, T4, T5, T6>?>(
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::Browserbase.AnyOf<T1, T2, T3, T4, T5>?>(
jsonStream,
jsonSerializerOptions);
}
Expand Down
Loading