Assembly: RestSharp.Serializers.SystemTextJson
Namespace: RestSharp.Serializers.SystemTextJson
Class RestClientExtensions
Inheritance
↳ object
Syntax
Method UseSystemTextJson(IRestClient)
Use System.Text.Json serializer with default settings
Syntax
Parameters
Name | Type | Description |
client | IRestClient | |
Returns
Type | Description |
IRestClient | |
Method UseSystemTextJson(IRestClient, JsonSerializerOptions)
Use System.Text.Json serializer with custom settings
Syntax
Parameters
Name | Type | Description |
client | IRestClient | |
options | JsonSerializerOptions | System.Text.Json serializer options |
Returns
Type | Description |
IRestClient | |
Class RestRequestExtensions
Inheritance
↳ object
Syntax
Method UseSystemTextJson(IRestRequest)
Syntax
Parameters
Name | Type | Description |
request | IRestRequest | |
Returns
Type | Description |
IRestRequest | |
Method UseSystemTextJson(IRestRequest, JsonSerializerOptions)
Syntax
Parameters
Name | Type | Description |
request | IRestRequest | |
options | JsonSerializerOptions | |
Returns
Type | Description |
IRestRequest | |
Class SystemTextJsonSerializer
Inheritance
↳ IRestSerializer
↳ System.Object
Syntax
Constructor SystemTextJsonSerializer()
Create the new serializer that uses System.Text.Json.JsonSerializer with default settings
Syntax
Constructor SystemTextJsonSerializer(JsonSerializerOptions)
Create the new serializer that uses System.Text.Json.JsonSerializer with custom settings
Syntax
Parameters
Name | Type | Description |
options | JsonSerializerOptions | Json serializer settings |
Method Serialize(Object)
Syntax
Parameters
Name | Type | Description |
obj | object | |
Returns
Method Serialize(Parameter)
Syntax
Parameters
Name | Type | Description |
bodyParameter | Parameter | |
Returns
Method Deserialize<T>(IRestResponse)
Syntax
Generic parameters
Parameters
Name | Type | Description |
response | IRestResponse | |
Returns
Property SupportedContentTypes
Syntax
Property ContentType
Syntax
Syntax