C# Client Library
A C# Client Library for the AnalyzeRe REST API
AnalyzeRe.JsonConverters.DerivedResourceCreationConverter< T > Class Template Reference

Allows serializing and deserializing derived Analyze Re Resources to a target base type. (For instance deserializing a CatXL object to a base Layer object reference). More...

Protected Member Functions

override T Create (Type objectType, JObject jObject)
 Create a new instance of the requested resource type for deserialization of a JSON string. More...
 

Detailed Description

Allows serializing and deserializing derived Analyze Re Resources to a target base type. (For instance deserializing a CatXL object to a base Layer object reference).

Template Parameters
TThe base for which we wish to support deserialization of derived types to.
Type Constraints
T :IAPIType 

Definition at line 15 of file DerivedResourceCreationConverter.cs.

Inheritance diagram for AnalyzeRe.JsonConverters.DerivedResourceCreationConverter< T >:
AnalyzeRe.JsonConverters.JsonCreationConverter< T >

Member Function Documentation

override T AnalyzeRe.JsonConverters.DerivedResourceCreationConverter< T >.Create ( Type  objectType,
JObject  jObject 
)
inlineprotected

Create a new instance of the requested resource type for deserialization of a JSON string.

Parameters
objectTypeThe requested type to convert the JObject to (can be a base type or interface).
jObjectThe JSON object to be converted to the specified class type.
Returns
A new instance of the type specified by the objectType, or a type that derives from the objectType if the JObject refers to a specific sub-type.

Definition at line 32 of file DerivedResourceCreationConverter.cs.


The documentation for this class was generated from the following file: