Table of Contents

Class ReplayRequest

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

Represents a single request in a replay.

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

Properties

BodySegments

[JsonPropertyName("bodySegments")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<Dictionary<string, object>>? BodySegments { get; set; }

Property Value

List<Dictionary<string, object>>

Headers

[JsonPropertyName("headers")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public Dictionary<string, string>? Headers { get; set; }

Property Value

Dictionary<string, string>

Method

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

Property Value

string

Url

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

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a ReplayRequest object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

ReplayRequest

The deserialized ReplayRequest object, or null if deserialization fails.