Class ReplayInteraction
Represents a single interaction, request and response in a replay.
public record ReplayInteraction : IEquatable<ReplayInteraction>
- Inheritance
-
ReplayInteraction
- Implements
- Inherited Members
Properties
Request
[JsonPropertyName("request")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ReplayRequest? Request { get; set; }
Property Value
Response
[JsonPropertyName("response")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ReplayResponse? Response { get; set; }
Property Value
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a ReplayInteraction object.
public static ReplayInteraction? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- ReplayInteraction
The deserialized ReplayInteraction object, or null if deserialization fails.