Constructor and Description |
---|
EntrySerializer() |
Modifier and Type | Method and Description |
---|---|
CMAEntry |
deserialize(com.google.gson.JsonElement json,
java.lang.reflect.Type type,
com.google.gson.JsonDeserializationContext context) |
com.google.gson.JsonElement |
serialize(CMAEntry src,
java.lang.reflect.Type type,
com.google.gson.JsonSerializationContext context)
Make sure all fields are mapped in the locale - value way.
|
public com.google.gson.JsonElement serialize(CMAEntry src, java.lang.reflect.Type type, com.google.gson.JsonSerializationContext context)
serialize
in interface com.google.gson.JsonSerializer<CMAEntry>
src
- the source to be edited.type
- the type to be used.context
- the json context to be changed.public CMAEntry deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type type, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
deserialize
in interface com.google.gson.JsonDeserializer<CMAEntry>
com.google.gson.JsonParseException
Copyright © 2019 Contentful, GmbH.. All Rights Reserved.