Class ReplayResponse
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
Headers
[JsonPropertyName("headers")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public Dictionary<string, string>? Headers { get; set; }
Property Value
SdkResponseSegments
[JsonPropertyName("sdkResponseSegments")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<Dictionary<string, object>>? SdkResponseSegments { get; set; }
Property Value
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
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- ReplayResponse
The deserialized ReplayResponse object, or null if deserialization fails.