Table of Contents

Class CreateFileResponse

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

Response for the create file method.

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

Properties

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

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

CreateFileResponse

The deserialized CreateFileResponse object, or null if deserialization fails.