public class CollectionPageSerializer
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T1,T2 extends IRequestBuilder> |
deserialize(com.google.gson.JsonElement json,
java.lang.reflect.Type typeOfT,
ILogger logger)
Deserializes the JsonElement
|
static <T1,T2 extends IRequestBuilder> |
serialize(BaseCollectionPage<T1,T2> src,
ILogger logger)
Serializes an CollectionPage
|
public static <T1,T2 extends IRequestBuilder> com.google.gson.JsonElement serialize(BaseCollectionPage<T1,T2> src, ILogger logger)
T1 - the entity type for the collectionT2 - the collection request builder interface typesrc - the CollectionPage variable for serializationlogger - the loggerpublic static <T1,T2 extends IRequestBuilder> BaseCollectionPage<T1,T2> deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, ILogger logger) throws com.google.gson.JsonParseException
T1 - the entity type for the collectionT2 - the collection request builder interface typejson - the source CollectionPage's JsontypeOfT - The type of the CollectionPage to deserialize tologger - the loggercom.google.gson.JsonParseException - the parse exception