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
4 changes: 4 additions & 0 deletions src/libs/Ideogram/Generated/JsonConverters.AspectRatio.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public sealed class AspectRatioJsonConverter : global::System.Text.Json.Serializ
var numValue = reader.GetInt32();
return (global::Ideogram.AspectRatio)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Ideogram.AspectRatio);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public sealed class AspectRatioNullableJsonConverter : global::System.Text.Json.
var numValue = reader.GetInt32();
return (global::Ideogram.AspectRatio)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Ideogram.AspectRatio?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}
Expand Down
4 changes: 4 additions & 0 deletions src/libs/Ideogram/Generated/JsonConverters.AspectRatioV3.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public sealed class AspectRatioV3JsonConverter : global::System.Text.Json.Serial
var numValue = reader.GetInt32();
return (global::Ideogram.AspectRatioV3)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Ideogram.AspectRatioV3);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public sealed class AspectRatioV3NullableJsonConverter : global::System.Text.Jso
var numValue = reader.GetInt32();
return (global::Ideogram.AspectRatioV3)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Ideogram.AspectRatioV3?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public sealed class ColorPalettePresetNameJsonConverter : global::System.Text.Js
var numValue = reader.GetInt32();
return (global::Ideogram.ColorPalettePresetName)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Ideogram.ColorPalettePresetName);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public sealed class ColorPalettePresetNameNullableJsonConverter : global::System
var numValue = reader.GetInt32();
return (global::Ideogram.ColorPalettePresetName)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Ideogram.ColorPalettePresetName?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public sealed class InternalTestingEnumFieldJsonConverter : global::System.Text.
var numValue = reader.GetInt32();
return (global::Ideogram.InternalTestingEnumField)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Ideogram.InternalTestingEnumField);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public sealed class InternalTestingEnumFieldNullableJsonConverter : global::Syst
var numValue = reader.GetInt32();
return (global::Ideogram.InternalTestingEnumField)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Ideogram.InternalTestingEnumField?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public sealed class MagicPromptOptionJsonConverter : global::System.Text.Json.Se
var numValue = reader.GetInt32();
return (global::Ideogram.MagicPromptOption)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Ideogram.MagicPromptOption);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public sealed class MagicPromptOptionNullableJsonConverter : global::System.Text
var numValue = reader.GetInt32();
return (global::Ideogram.MagicPromptOption)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Ideogram.MagicPromptOption?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public sealed class MagicPromptVersionEnumJsonConverter : global::System.Text.Js
var numValue = reader.GetInt32();
return (global::Ideogram.MagicPromptVersionEnum)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Ideogram.MagicPromptVersionEnum);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public sealed class MagicPromptVersionEnumNullableJsonConverter : global::System
var numValue = reader.GetInt32();
return (global::Ideogram.MagicPromptVersionEnum)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Ideogram.MagicPromptVersionEnum?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}
Expand Down
4 changes: 4 additions & 0 deletions src/libs/Ideogram/Generated/JsonConverters.ModelEnum.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public sealed class ModelEnumJsonConverter : global::System.Text.Json.Serializat
var numValue = reader.GetInt32();
return (global::Ideogram.ModelEnum)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Ideogram.ModelEnum);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public sealed class ModelEnumNullableJsonConverter : global::System.Text.Json.Se
var numValue = reader.GetInt32();
return (global::Ideogram.ModelEnum)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Ideogram.ModelEnum?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public sealed class RenderingSpeedJsonConverter : global::System.Text.Json.Seria
var numValue = reader.GetInt32();
return (global::Ideogram.RenderingSpeed)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Ideogram.RenderingSpeed);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public sealed class RenderingSpeedNullableJsonConverter : global::System.Text.Js
var numValue = reader.GetInt32();
return (global::Ideogram.RenderingSpeed)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Ideogram.RenderingSpeed?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}
Expand Down
4 changes: 4 additions & 0 deletions src/libs/Ideogram/Generated/JsonConverters.Resolution.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public sealed class ResolutionJsonConverter : global::System.Text.Json.Serializa
var numValue = reader.GetInt32();
return (global::Ideogram.Resolution)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Ideogram.Resolution);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public sealed class ResolutionNullableJsonConverter : global::System.Text.Json.S
var numValue = reader.GetInt32();
return (global::Ideogram.Resolution)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Ideogram.Resolution?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}
Expand Down
4 changes: 4 additions & 0 deletions src/libs/Ideogram/Generated/JsonConverters.ResolutionV3.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public sealed class ResolutionV3JsonConverter : global::System.Text.Json.Seriali
var numValue = reader.GetInt32();
return (global::Ideogram.ResolutionV3)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Ideogram.ResolutionV3);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public sealed class ResolutionV3NullableJsonConverter : global::System.Text.Json
var numValue = reader.GetInt32();
return (global::Ideogram.ResolutionV3)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Ideogram.ResolutionV3?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}
Expand Down
4 changes: 4 additions & 0 deletions src/libs/Ideogram/Generated/JsonConverters.StyleType.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public sealed class StyleTypeJsonConverter : global::System.Text.Json.Serializat
var numValue = reader.GetInt32();
return (global::Ideogram.StyleType)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Ideogram.StyleType);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public sealed class StyleTypeNullableJsonConverter : global::System.Text.Json.Se
var numValue = reader.GetInt32();
return (global::Ideogram.StyleType)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Ideogram.StyleType?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}
Expand Down
4 changes: 4 additions & 0 deletions src/libs/Ideogram/Generated/JsonConverters.StyleTypeV3.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public sealed class StyleTypeV3JsonConverter : global::System.Text.Json.Serializ
var numValue = reader.GetInt32();
return (global::Ideogram.StyleTypeV3)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Ideogram.StyleTypeV3);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public sealed class StyleTypeV3NullableJsonConverter : global::System.Text.Json.
var numValue = reader.GetInt32();
return (global::Ideogram.StyleTypeV3)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Ideogram.StyleTypeV3?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}
Expand Down
Loading