Skip to content

ServiceNow.Core

SNow.Core.Extensions.HttpResponseMessageExtensions

HttpResponseMessageExtensions.DeserializeAsync<TValue>(HttpResponseMessage) Method

Deserialize an ServiceNow API response

csharp
public static System.Threading.Tasks.Task<TValue> DeserializeAsync<TValue>(this System.Net.Http.HttpResponseMessage response);

Type parameters

TValue
type to be deserialized to

Parameters

response System.Net.Http.HttpResponseMessage
Deserialized List or a single element of type TValue

Returns

System.Threading.Tasks.Task<TValue>

Released under the MIT License.