Package com.microsoft.graph.serializer
Class CollectionPageSerializer
java.lang.Object
com.microsoft.graph.serializer.CollectionPageSerializer
Specialized serializer to handle collection pages
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T1,T2 extends BaseRequestBuilder<T1>>
BaseCollectionPage<T1,T2> deserialize(com.google.gson.JsonElement json, Type typeOfT, ILogger logger) Deserializes the JsonElementstatic <T1,T2 extends BaseRequestBuilder<T1>>
com.google.gson.JsonElementserialize(BaseCollectionPage<T1, T2> src, ILogger logger) Serializes an CollectionPage
-
Method Details
-
serialize
@Nullable public static <T1,T2 extends BaseRequestBuilder<T1>> com.google.gson.JsonElement serialize(@Nonnull BaseCollectionPage<T1, T2> src, @Nonnull ILogger logger) Serializes an CollectionPage- Type Parameters:
T1- the entity type for the collectionT2- the collection request builder interface type- Parameters:
src- the CollectionPage variable for serializationlogger- the logger- Returns:
- JsonElement of CollectionPage
-
deserialize
@Nullable public static <T1,T2 extends BaseRequestBuilder<T1>> BaseCollectionPage<T1,T2> deserialize(@Nonnull com.google.gson.JsonElement json, @Nonnull Type typeOfT, @Nonnull ILogger logger) throws com.google.gson.JsonParseException Deserializes the JsonElement- Type Parameters:
T1- the entity type for the collectionT2- the collection request builder interface type- Parameters:
json- the source CollectionPage's JsontypeOfT- The type of the CollectionPage to deserialize tologger- the logger- Returns:
- the deserialized CollectionPage
- Throws:
com.google.gson.JsonParseException- the parse exception
-