diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminAccount.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminAccount.Json.g.cs
index 454a503..4756345 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminAccount.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminAccount.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminAccount;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminAccount? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminAccount;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminActivity.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminActivity.Json.g.cs
index 28591f8..5b195a2 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminActivity.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminActivity.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminActivity;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminActivity? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminActivity;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminActivityData.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminActivityData.Json.g.cs
index c0bc18e..47db5d7 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminActivityData.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminActivityData.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminActivityData;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminActivityData? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminActivityData;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBot.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBot.Json.g.cs
index 6dd4830..33b602b 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBot.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBot.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBot;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBot? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBot;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotActions.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotActions.Json.g.cs
index 860ddd7..74680d0 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotActions.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotActions.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotActions;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotActions? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotActions;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotActions2.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotActions2.Json.g.cs
index 58bca47..d489253 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotActions2.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotActions2.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotActions2;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotActions2? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotActions2;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotActionsAttributes.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotActionsAttributes.Json.g.cs
index 1fab59f..9572cd0 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotActionsAttributes.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotActionsAttributes.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotActionsAttributes;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotActionsAttributes? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotActionsAttributes;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotActionsInput.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotActionsInput.Json.g.cs
index 68bb962..6ed1115 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotActionsInput.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotActionsInput.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotActionsInput;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotActionsInput? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotActionsInput;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotActionsInputSchema.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotActionsInputSchema.Json.g.cs
index 3095861..def7c0a 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotActionsInputSchema.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotActionsInputSchema.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotActionsInputSchema;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotActionsInputSchema? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotActionsInputSchema;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotActionsOutput.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotActionsOutput.Json.g.cs
index 9ca7f43..aa85bf9 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotActionsOutput.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotActionsOutput.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotActionsOutput;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotActionsOutput? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotActionsOutput;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotActionsOutputSchema.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotActionsOutputSchema.Json.g.cs
index 04688e2..07e9f41 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotActionsOutputSchema.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotActionsOutputSchema.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotActionsOutputSchema;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotActionsOutputSchema? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotActionsOutputSchema;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotConfiguration.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotConfiguration.Json.g.cs
index 5c0b98d..0294363 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotConfiguration.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotConfiguration.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotConfiguration;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotConfiguration? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotConfiguration;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotConfigurationData.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotConfigurationData.Json.g.cs
index 993260c..85393e6 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotConfigurationData.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotConfigurationData.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotConfigurationData;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotConfigurationData? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotConfigurationData;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotConfigurationSchema.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotConfigurationSchema.Json.g.cs
index 0e56ad4..323ed09 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotConfigurationSchema.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotConfigurationSchema.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotConfigurationSchema;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotConfigurationSchema? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotConfigurationSchema;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotConversation.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotConversation.Json.g.cs
index 314317b..81cf2e7 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotConversation.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotConversation.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotConversation;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotConversation? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotConversation;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotConversationTags.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotConversationTags.Json.g.cs
index 469d77c..06281ff 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotConversationTags.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotConversationTags.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotConversationTags;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotConversationTags? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotConversationTags;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotConversationTags2.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotConversationTags2.Json.g.cs
index 71816ed..8ba84b5 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotConversationTags2.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotConversationTags2.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotConversationTags2;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotConversationTags2? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotConversationTags2;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotEvents.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotEvents.Json.g.cs
index 9ccb3e7..1150b84 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotEvents.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotEvents.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotEvents;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotEvents? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotEvents;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotEvents2.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotEvents2.Json.g.cs
index 5f8c59e..9e9ec72 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotEvents2.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotEvents2.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotEvents2;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotEvents2? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotEvents2;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotEventsAttributes.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotEventsAttributes.Json.g.cs
index 3daa23b..12a4791 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotEventsAttributes.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotEventsAttributes.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotEventsAttributes;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotEventsAttributes? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotEventsAttributes;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotEventsSchema.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotEventsSchema.Json.g.cs
index db00d7f..ea1ebae 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotEventsSchema.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotEventsSchema.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotEventsSchema;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotEventsSchema? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotEventsSchema;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotIntegrations.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotIntegrations.Json.g.cs
index 434b1ec..b8f21c0 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotIntegrations.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotIntegrations.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotIntegrations;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotIntegrations? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotIntegrations;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotIntegrations2.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotIntegrations2.Json.g.cs
index 6aa921a..53f4777 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotIntegrations2.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotIntegrations2.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotIntegrations2;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotIntegrations2? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotIntegrations2;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotIntegrationsConfiguration.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotIntegrationsConfiguration.Json.g.cs
index a194dbb..1edd5a9 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotIntegrationsConfiguration.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotIntegrationsConfiguration.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotIntegrationsConfiguration;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotIntegrationsConfiguration? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotIntegrationsConfiguration;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotMedia.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotMedia.Json.g.cs
index 5b32708..0752091 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotMedia.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotMedia.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotMedia;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotMedia? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotMedia;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotMessage.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotMessage.Json.g.cs
index 4c9517c..e5ddcc3 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotMessage.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotMessage.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotMessage;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotMessage? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotMessage;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotMessageTags.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotMessageTags.Json.g.cs
index 6512989..b425f70 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotMessageTags.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotMessageTags.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotMessageTags;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotMessageTags? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotMessageTags;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotMessageTags2.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotMessageTags2.Json.g.cs
index c16fe81..85c2f04 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotMessageTags2.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotMessageTags2.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotMessageTags2;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotMessageTags2? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotMessageTags2;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotPlugins.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotPlugins.Json.g.cs
index f489348..af0c87c 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotPlugins.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotPlugins.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotPlugins;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotPlugins? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotPlugins;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotPlugins2.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotPlugins2.Json.g.cs
index 524e011..8131a4c 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotPlugins2.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotPlugins2.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotPlugins2;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotPlugins2? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotPlugins2;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotPluginsConfiguration.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotPluginsConfiguration.Json.g.cs
index a90bf27..e596733 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotPluginsConfiguration.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotPluginsConfiguration.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotPluginsConfiguration;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotPluginsConfiguration? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotPluginsConfiguration;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotPluginsIntegrations.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotPluginsIntegrations.Json.g.cs
index 86d6a20..bab223d 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotPluginsIntegrations.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotPluginsIntegrations.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotPluginsIntegrations;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotPluginsIntegrations? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotPluginsIntegrations;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotPluginsIntegrations2.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotPluginsIntegrations2.Json.g.cs
index 3b38590..dfc57a9 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotPluginsIntegrations2.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotPluginsIntegrations2.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotPluginsIntegrations2;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotPluginsIntegrations2? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotPluginsIntegrations2;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotPluginsInterfaces.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotPluginsInterfaces.Json.g.cs
index 8d24502..2e1f1ba 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotPluginsInterfaces.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotPluginsInterfaces.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotPluginsInterfaces;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotPluginsInterfaces? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotPluginsInterfaces;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotPluginsInterfaces2.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotPluginsInterfaces2.Json.g.cs
index c7e195e..37a6cd6 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotPluginsInterfaces2.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotPluginsInterfaces2.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotPluginsInterfaces2;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotPluginsInterfaces2? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotPluginsInterfaces2;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotRecurringEvents.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotRecurringEvents.Json.g.cs
index a083770..041b349 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotRecurringEvents.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotRecurringEvents.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotRecurringEvents;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotRecurringEvents? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotRecurringEvents;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotRecurringEvents2.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotRecurringEvents2.Json.g.cs
index ae1b085..deefc22 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotRecurringEvents2.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotRecurringEvents2.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotRecurringEvents2;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotRecurringEvents2? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotRecurringEvents2;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotRecurringEventsPayload.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotRecurringEventsPayload.Json.g.cs
index 8f52170..b7f3e70 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotRecurringEventsPayload.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotRecurringEventsPayload.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotRecurringEventsPayload;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotRecurringEventsPayload? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotRecurringEventsPayload;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotRecurringEventsSchedule.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotRecurringEventsSchedule.Json.g.cs
index 9b4388e..7f29f43 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotRecurringEventsSchedule.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotRecurringEventsSchedule.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotRecurringEventsSchedule;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotRecurringEventsSchedule? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotRecurringEventsSchedule;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotStates.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotStates.Json.g.cs
index 2a43cc2..26d58a6 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotStates.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotStates.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotStates;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotStates? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotStates;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotStates2.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotStates2.Json.g.cs
index 6086695..615fc3f 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotStates2.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotStates2.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotStates2;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotStates2? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotStates2;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotStatesSchema.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotStatesSchema.Json.g.cs
index 04f8acf..a926d4b 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotStatesSchema.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotStatesSchema.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotStatesSchema;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotStatesSchema? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotStatesSchema;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotSubscriptions.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotSubscriptions.Json.g.cs
index 9ddf5f2..db9f92f 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotSubscriptions.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotSubscriptions.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotSubscriptions;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotSubscriptions? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotSubscriptions;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotSubscriptionsEvents.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotSubscriptionsEvents.Json.g.cs
index 26ffd98..358db15 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotSubscriptionsEvents.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotSubscriptionsEvents.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotSubscriptionsEvents;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotSubscriptionsEvents? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotSubscriptionsEvents;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotSubscriptionsEvents2.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotSubscriptionsEvents2.Json.g.cs
index e3e0d5a..de0c1a9 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotSubscriptionsEvents2.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotSubscriptionsEvents2.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotSubscriptionsEvents2;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotSubscriptionsEvents2? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotSubscriptionsEvents2;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotTags.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotTags.Json.g.cs
index c770bb3..52cddc3 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotTags.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotTags.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotTags;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotTags? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotTags;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotUser.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotUser.Json.g.cs
index 40e2d3a..3616ab5 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotUser.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotUser.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotUser;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotUser? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotUser;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotUserTags.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotUserTags.Json.g.cs
index 3fec90d..8b18ecd 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotUserTags.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotUserTags.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotUserTags;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotUserTags? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotUserTags;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminBotUserTags2.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminBotUserTags2.Json.g.cs
index 8719bff..d1c7fcd 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminBotUserTags2.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminBotUserTags2.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminBotUserTags2;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminBotUserTags2? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminBotUserTags2;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegration.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegration.Json.g.cs
index 0d15212..bdb4f25 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegration.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegration.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegration;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegration? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegration;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActions.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActions.Json.g.cs
index daa8890..35ea6b8 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActions.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActions.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationActions;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationActions? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationActions;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActions2.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActions2.Json.g.cs
index f45a121..22488b3 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActions2.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActions2.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationActions2;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationActions2? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationActions2;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActionsAttributes.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActionsAttributes.Json.g.cs
index 5d021d2..f54b977 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActionsAttributes.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActionsAttributes.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationActionsAttributes;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationActionsAttributes? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationActionsAttributes;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActionsInput.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActionsInput.Json.g.cs
index b6724b9..9137aa1 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActionsInput.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActionsInput.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationActionsInput;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationActionsInput? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationActionsInput;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActionsInputSchema.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActionsInputSchema.Json.g.cs
index 18f319f..abb65ef 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActionsInputSchema.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActionsInputSchema.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationActionsInputSchema;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationActionsInputSchema? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationActionsInputSchema;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActionsOutput.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActionsOutput.Json.g.cs
index 00b9399..ec7bead 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActionsOutput.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActionsOutput.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationActionsOutput;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationActionsOutput? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationActionsOutput;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActionsOutputSchema.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActionsOutputSchema.Json.g.cs
index 9a870db..16fb993 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActionsOutputSchema.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationActionsOutputSchema.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationActionsOutputSchema;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationActionsOutputSchema? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationActionsOutputSchema;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationAttributes.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationAttributes.Json.g.cs
index 4dd69dc..f7726cd 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationAttributes.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationAttributes.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationAttributes;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationAttributes? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationAttributes;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannels.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannels.Json.g.cs
index db1c130..2a51904 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannels.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannels.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationChannels;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationChannels? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationChannels;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannels2.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannels2.Json.g.cs
index 6c738f7..bebc9eb 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannels2.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannels2.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationChannels2;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationChannels2? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationChannels2;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsConversation.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsConversation.Json.g.cs
index 1ccb201..c888f6f 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsConversation.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsConversation.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationChannelsConversation;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationChannelsConversation? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationChannelsConversation;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsConversationCreation.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsConversationCreation.Json.g.cs
index b2a88f3..9d7c0f9 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsConversationCreation.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsConversationCreation.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationChannelsConversationCreation;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationChannelsConversationCreation? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationChannelsConversationCreation;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsConversationTags.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsConversationTags.Json.g.cs
index d59e58a..980a51e 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsConversationTags.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsConversationTags.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationChannelsConversationTags;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationChannelsConversationTags? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationChannelsConversationTags;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsConversationTags2.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsConversationTags2.Json.g.cs
index ab8329f..1ff8463 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsConversationTags2.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsConversationTags2.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationChannelsConversationTags2;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationChannelsConversationTags2? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationChannelsConversationTags2;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsMessage.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsMessage.Json.g.cs
index 9bd8587..da3a4ab 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsMessage.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsMessage.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationChannelsMessage;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationChannelsMessage? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationChannelsMessage;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsMessageTags.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsMessageTags.Json.g.cs
index e3536fe..2a17865 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsMessageTags.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsMessageTags.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationChannelsMessageTags;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationChannelsMessageTags? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationChannelsMessageTags;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsMessageTags2.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsMessageTags2.Json.g.cs
index 30e5005..29afc7b 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsMessageTags2.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsMessageTags2.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationChannelsMessageTags2;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationChannelsMessageTags2? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationChannelsMessageTags2;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsMessages.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsMessages.Json.g.cs
index da0ccae..4e00340 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsMessages.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsMessages.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationChannelsMessages;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationChannelsMessages? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationChannelsMessages;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsMessages2.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsMessages2.Json.g.cs
index 7290300..2ab4676 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsMessages2.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsMessages2.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationChannelsMessages2;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationChannelsMessages2? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationChannelsMessages2;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsMessagesSchema.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsMessagesSchema.Json.g.cs
index f4cbd3b..de4e799 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsMessagesSchema.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationChannelsMessagesSchema.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationChannelsMessagesSchema;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationChannelsMessagesSchema? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationChannelsMessagesSchema;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfiguration.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfiguration.Json.g.cs
index 2ef07b1..1ab3be9 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfiguration.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfiguration.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationConfiguration;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationConfiguration? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationConfiguration;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfigurationIdentifier.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfigurationIdentifier.Json.g.cs
index 9e7b6cc..4f41805 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfigurationIdentifier.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfigurationIdentifier.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationConfigurationIdentifier;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationConfigurationIdentifier? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationConfigurationIdentifier;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfigurationSchema.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfigurationSchema.Json.g.cs
index 8297e95..4ea4489 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfigurationSchema.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfigurationSchema.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationConfigurationSchema;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationConfigurationSchema? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationConfigurationSchema;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfigurations.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfigurations.Json.g.cs
index 87036e1..4584d9d 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfigurations.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfigurations.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationConfigurations;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationConfigurations? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationConfigurations;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfigurations2.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfigurations2.Json.g.cs
index 305b6be..1426370 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfigurations2.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfigurations2.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationConfigurations2;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationConfigurations2? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationConfigurations2;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfigurationsIdentifier.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfigurationsIdentifier.Json.g.cs
index ddde7bb..86e7339 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfigurationsIdentifier.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfigurationsIdentifier.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationConfigurationsIdentifier;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationConfigurationsIdentifier? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationConfigurationsIdentifier;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfigurationsSchema.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfigurationsSchema.Json.g.cs
index 66728ac..8689799 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfigurationsSchema.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationConfigurationsSchema.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationConfigurationsSchema;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationConfigurationsSchema? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationConfigurationsSchema;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEntities.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEntities.Json.g.cs
index 630e58e..72318ee 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEntities.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEntities.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationEntities;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationEntities? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationEntities;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEntities2.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEntities2.Json.g.cs
index ad1e487..e2d4a5f 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEntities2.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEntities2.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationEntities2;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationEntities2? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationEntities2;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEntitiesSchema.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEntitiesSchema.Json.g.cs
index aef4ecd..2e0ebe2 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEntitiesSchema.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEntitiesSchema.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationEntitiesSchema;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationEntitiesSchema? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationEntitiesSchema;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEvents.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEvents.Json.g.cs
index e132c63..52ae678 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEvents.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEvents.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationEvents;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationEvents? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationEvents;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEvents2.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEvents2.Json.g.cs
index 2bf870b..c160818 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEvents2.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEvents2.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationEvents2;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationEvents2? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationEvents2;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEventsAttributes.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEventsAttributes.Json.g.cs
index 65f473c..d74e011 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEventsAttributes.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEventsAttributes.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationEventsAttributes;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationEventsAttributes? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationEventsAttributes;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEventsSchema.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEventsSchema.Json.g.cs
index f07ba93..e863400 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEventsSchema.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationEventsSchema.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationEventsSchema;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationEventsSchema? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationEventsSchema;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
///
@@ -84,6 +126,13 @@ public string ToJson(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
jsonSerializerOptions);
diff --git a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationIdentifier.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationIdentifier.Json.g.cs
index 6682fe9..0bae0b3 100644
--- a/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationIdentifier.Json.g.cs
+++ b/src/libs/Botpress/Generated/Botpress.Models.AdminIntegrationIdentifier.Json.g.cs
@@ -16,6 +16,14 @@ public string ToJson(
jsonSerializerContext);
}
+ ///
+ /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
+ ///
+ public string ToJson()
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
///
@@ -26,6 +34,11 @@ public string ToJson(
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return ToJson(global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
@@ -44,6 +57,17 @@ public string ToJson(
jsonSerializerContext) as global::Botpress.AdminIntegrationIdentifier;
}
+ ///
+ /// Deserializes a JSON string using the generated default JsonSerializerContext.
+ ///
+ public static global::Botpress.AdminIntegrationIdentifier? FromJson(
+ string json)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///
/// Deserializes a JSON string using the provided JsonSerializerOptions.
///
@@ -55,6 +79,13 @@ public string ToJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
+ if (jsonSerializerOptions is null)
+ {
+ return FromJson(
+ json,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
jsonSerializerOptions);
@@ -73,6 +104,17 @@ public string ToJson(
jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.AdminIntegrationIdentifier;
}
+ ///
+ /// Deserializes a JSON stream using the generated default JsonSerializerContext.
+ ///
+ public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync(
+ global::System.IO.Stream jsonStream)
+ {
+ return FromJsonStreamAsync(
+ jsonStream,
+ global::Botpress.SourceGenerationContext.Default);
+ }
+
///