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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ partial void ProcessListEnginesResponseContent(
__response.EnsureSuccessStatusCode();

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<global::StabilityAI.Engine>), JsonSerializerContext) as global::System.Collections.Generic.IList<global::StabilityAI.Engine> ??
(global::System.Collections.Generic.IList<global::StabilityAI.Engine>?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<global::StabilityAI.Engine>), JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -232,7 +232,7 @@ partial void ProcessListEnginesResponseContent(
).ConfigureAwait(false);

return
await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::StabilityAI.Engine>), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList<global::StabilityAI.Engine> ??
(global::System.Collections.Generic.IList<global::StabilityAI.Engine>?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::StabilityAI.Engine>), JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ partial void ProcessImageToImageResponseContent(
__response.EnsureSuccessStatusCode();

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<global::StabilityAI.Image>), JsonSerializerContext) as global::System.Collections.Generic.IList<global::StabilityAI.Image> ??
(global::System.Collections.Generic.IList<global::StabilityAI.Image>?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<global::StabilityAI.Image>), JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -480,7 +480,7 @@ partial void ProcessImageToImageResponseContent(
).ConfigureAwait(false);

return
await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::StabilityAI.Image>), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList<global::StabilityAI.Image> ??
(global::System.Collections.Generic.IList<global::StabilityAI.Image>?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::StabilityAI.Image>), JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ partial void ProcessMaskingResponseContent(
__response.EnsureSuccessStatusCode();

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<global::StabilityAI.Image>), JsonSerializerContext) as global::System.Collections.Generic.IList<global::StabilityAI.Image> ??
(global::System.Collections.Generic.IList<global::StabilityAI.Image>?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<global::StabilityAI.Image>), JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -472,7 +472,7 @@ partial void ProcessMaskingResponseContent(
).ConfigureAwait(false);

return
await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::StabilityAI.Image>), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList<global::StabilityAI.Image> ??
(global::System.Collections.Generic.IList<global::StabilityAI.Image>?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::StabilityAI.Image>), JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ partial void ProcessTextToImageResponseContent(
__response.EnsureSuccessStatusCode();

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<global::StabilityAI.Image>), JsonSerializerContext) as global::System.Collections.Generic.IList<global::StabilityAI.Image> ??
(global::System.Collections.Generic.IList<global::StabilityAI.Image>?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<global::StabilityAI.Image>), JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -395,7 +395,7 @@ partial void ProcessTextToImageResponseContent(
).ConfigureAwait(false);

return
await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::StabilityAI.Image>), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList<global::StabilityAI.Image> ??
(global::System.Collections.Generic.IList<global::StabilityAI.Image>?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::StabilityAI.Image>), JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ partial void ProcessUpscaleImageResponseContent(
__response.EnsureSuccessStatusCode();

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<global::StabilityAI.Image>), JsonSerializerContext) as global::System.Collections.Generic.IList<global::StabilityAI.Image> ??
(global::System.Collections.Generic.IList<global::StabilityAI.Image>?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<global::StabilityAI.Image>), JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -422,7 +422,7 @@ partial void ProcessUpscaleImageResponseContent(
).ConfigureAwait(false);

return
await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::StabilityAI.Image>), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList<global::StabilityAI.Image> ??
(global::System.Collections.Generic.IList<global::StabilityAI.Image>?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList<global::StabilityAI.Image>), JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down