Table of Contents

Class ReplayResponse

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

Represents a single response in a replay.

public record ReplayResponse : IEquatable<ReplayResponse>
Inheritance
ReplayResponse
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>

SdkResponseSegments

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

Property Value

List<Dictionary<string, object>>

StatusCode

[JsonPropertyName("statusCode")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? StatusCode { get; set; }

Property Value

int?

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a ReplayResponse object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

ReplayResponse

The deserialized ReplayResponse object, or null if deserialization fails.