public class JsonMetadataDeserializer extends Object implements com.google.gson.JsonDeserializer<Metadata>
Constructor and Description |
---|
JsonMetadataDeserializer() |
Modifier and Type | Method and Description |
---|---|
Metadata |
deserialize(com.google.gson.JsonElement element,
Type type,
com.google.gson.JsonDeserializationContext context)
Deserializes a json object (equivalent to: Map
|
public Metadata deserialize(com.google.gson.JsonElement element, Type type, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
deserialize
in interface com.google.gson.JsonDeserializer<Metadata>
element
- to serializetype
- (ignored)context
- (ignored)com.google.gson.JsonParseException
- if element is not able to be parsedCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.