Table of Contents

Class ListModelsResponse

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll
public record ListModelsResponse : IEquatable<ListModelsResponse>
Inheritance
ListModelsResponse
Implements
Inherited Members

Properties

Models

[JsonPropertyName("models")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<Model>? Models { get; set; }

Property Value

List<Model>

NextPageToken

[JsonPropertyName("nextPageToken")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? NextPageToken { get; set; }

Property Value

string

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 ListModelsResponse object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

ListModelsResponse

The deserialized ListModelsResponse object, or null if deserialization fails.