public class SnapshotDeserializer extends java.lang.Object implements com.google.gson.JsonDeserializer<CMASnapshot>
| Constructor and Description |
|---|
SnapshotDeserializer() |
| Modifier and Type | Method and Description |
|---|---|
CMASnapshot |
deserialize(com.google.gson.JsonElement json,
java.lang.reflect.Type typeOfT,
com.google.gson.JsonDeserializationContext context)
Inspect json payload and generate either a content type snapshot from it or an entry snap shot.
|
public CMASnapshot deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
deserialize in interface com.google.gson.JsonDeserializer<CMASnapshot>json - the json blob to be convertedtypeOfT - the type to be convertedcontext - the json context for updatingcom.google.gson.JsonParseException - if the json object to be parsed is malformed.Copyright © 2019 Contentful, GmbH.. All Rights Reserved.