Table of Contents

Class EditImageResponse

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

Response for the request to edit an image.

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

Properties

GeneratedImages

Generated images.

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

Property Value

List<GeneratedImage>

SdkHttpResponse

Used to retain the full HTTP response.

[JsonPropertyName("sdkHttpResponse")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public HttpResponse? SdkHttpResponse { get; set; }

Property Value

HttpResponse

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a EditImageResponse object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

EditImageResponse

The deserialized EditImageResponse object, or null if deserialization fails.