Value Method
Overloads
| Value<T>(String, Func<JToken, T>) |
Gets custom value from a json response. |
Value<T>(String, Func<JToken, T>)
Gets custom value from a json response.
Declaration
public T Value<T>(string name, Func<JToken, T> deserializer)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name |
The property of the response to deserialized. |
| System.Func<Newtonsoft.Json.Linq.JToken, T> | deserializer |
The method to use to translate a token to the target type. |
Returns
| Type | Description |
|---|---|
| T |
The deserialized value. |
Type Parameters
| Name | Description |
|---|---|
| T |
The type to which the json response should be deserialized. |