Class PlatformJsonEnvelope
A JSON-RPC request or response body whose real payload is a System.Text.Json string (see PlatformJson). Flat by design so the transport's own serializer round-trips it.
public record PlatformJsonEnvelope : IEquatable<PlatformJsonEnvelope>
- Inheritance
-
PlatformJsonEnvelope
- Implements
- Inherited Members
Properties
Json
The System.Text.Json representation of the payload.
public string Json { get; init; }
Property Value
Methods
Of<T>(T)
Wraps payload in an envelope.
public static PlatformJsonEnvelope Of<T>(T payload)
Parameters
payloadT
Returns
Type Parameters
T
Unwrap<T>()
Deserializes the wrapped payload as T.
public T Unwrap<T>()
Returns
- T
Type Parameters
T