RESTCLIENT.NET / API REFERENCE
RestClient.Net.Deserialize<T>
All API types · RestClient.Net · View source
public delegate Task<T> Deserialize<T>(HttpResponseMessage httpResponseMessage, CancellationToken cancellationToken);
Represents an asynchronous function that deserializes an HTTP response message into a typed object.
| Parameter | Type | Default | Description |
|---|---|---|---|
httpResponseMessage |
HttpResponseMessage |
Required | The HTTP response message containing the content to deserialize. |
cancellationToken |
CancellationToken |
Required | A token to cancel the deserialization operation. |
Type parameter T: The type to deserialize the response to.
Returns: A task that represents the asynchronous deserialization operation, containing the deserialized object of type T.