Package com.microsoft.graph.serializer
Class CollectionResponseDeserializer
java.lang.Object
com.microsoft.graph.serializer.CollectionResponseDeserializer
Specialized de-serializer to handle collection responses
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T1> BaseCollectionResponse<T1>deserialize(com.google.gson.JsonElement json, Type typeOfT, ILogger logger)Deserializes the JsonElement
-
Method Details
-
deserialize
@Nullable public static <T1> BaseCollectionResponse<T1> deserialize(@Nonnull com.google.gson.JsonElement json, @Nonnull Type typeOfT, @Nonnull ILogger logger) throws com.google.gson.JsonParseExceptionDeserializes the JsonElement- Type Parameters:
T1- the entity type for the collection- Parameters:
json- the source CollectionResponse's JsontypeOfT- The type of the CollectionResponse to deserialize tologger- the logger- Returns:
- the deserialized CollectionResponse
- Throws:
com.google.gson.JsonParseException- the parse exception
-