Table of Contents

Class ProductImage

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

An image of the product.

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

Properties

ProductImageField

An image of the product to be recontextualized.

[JsonPropertyName("productImage")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public Image? ProductImageField { get; set; }

Property Value

Image

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a ProductImage object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

ProductImage

The deserialized ProductImage object, or null if deserialization fails.