Table of Contents

Class RecontextImageResponse

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

The output images response.

public record RecontextImageResponse : IEquatable<RecontextImageResponse>
Inheritance
RecontextImageResponse
Implements
Inherited Members

Properties

GeneratedImages

List of generated images.

[JsonPropertyName("generatedImages")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<GeneratedImage>? GeneratedImages { get; set; }

Property Value

List<GeneratedImage>

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a RecontextImageResponse object.

public static RecontextImageResponse? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

RecontextImageResponse

The deserialized RecontextImageResponse object, or null if deserialization fails.