Table of Contents

Class UpscaleImageResponse

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll
public record UpscaleImageResponse : IEquatable<UpscaleImageResponse>
Inheritance
UpscaleImageResponse
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 UpscaleImageResponse object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

UpscaleImageResponse

The deserialized UpscaleImageResponse object, or null if deserialization fails.