Class GenerateImagesResponse
The output images response.
public record GenerateImagesResponse : IEquatable<GenerateImagesResponse>
- Inheritance
-
GenerateImagesResponse
- Implements
- Inherited Members
Properties
GeneratedImages
List of generated images.
[JsonPropertyName("generatedImages")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<GeneratedImage>? GeneratedImages { get; set; }
Property Value
PositivePromptSafetyAttributes
Safety attributes of the positive prompt. Only populated if include_safety_attributes is
set to True.
[JsonPropertyName("positivePromptSafetyAttributes")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public SafetyAttributes? PositivePromptSafetyAttributes { get; set; }
Property Value
SdkHttpResponse
Used to retain the full HTTP response.
[JsonPropertyName("sdkHttpResponse")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public HttpResponse? SdkHttpResponse { get; set; }
Property Value
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a GenerateImagesResponse object.
public static GenerateImagesResponse? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- GenerateImagesResponse
The deserialized GenerateImagesResponse object, or null if deserialization fails.