Table of Contents

Class ReplayFile

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

Represents a recorded session.

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

Properties

Interactions

[JsonPropertyName("interactions")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<ReplayInteraction>? Interactions { get; set; }

Property Value

List<ReplayInteraction>

ReplayId

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

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a ReplayFile object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

ReplayFile

The deserialized ReplayFile object, or null if deserialization fails.