DerivedClassIdentifier Class
- java.
lang. Object - com.
microsoft. graph. serializer. DerivedClassIdentifier
- com.
public class DerivedClassIdentifier
This class provides methods to get the derived class corresponding to the OData type when deserializing payloads.
Constructor Summary
| Constructor | Description |
|---|---|
| DerivedClassIdentifier(ILogger logger) |
Creates a new instance of the dereived class identifier. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.Class<?> |
identify(JsonObject jsonObject, Class<?> parentClass)
Get the derived class for the given JSON object This covers scenarios in which the service may return one of several derived types of a base object, which it defines using the odata. |
Methods inherited from java.lang.Object
Constructor Details
DerivedClassIdentifier
public DerivedClassIdentifier(ILogger logger)
Creates a new instance of the dereived class identifier.
Parameters:
Method Details
identify
public Class identify(JsonObject jsonObject, Class parentClass)
Get the derived class for the given JSON object This covers scenarios in which the service may return one of several derived types of a base object, which it defines using the odata.type parameter
Parameters:
Returns: