Table of Contents

Class ImageSearch

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

Image search for grounding and related configurations.

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

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a ImageSearch object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

ImageSearch

The deserialized ImageSearch object, or null if deserialization fails.