Class JsonMetadataDeserializer

  • All Implemented Interfaces:
    com.google.gson.JsonDeserializer<Metadata>

    public class JsonMetadataDeserializer
    extends Object
    implements com.google.gson.JsonDeserializer<Metadata>
    Deserializer for Metadata If overriding this, remember that this is called from a static context. Share state only with great caution.
    • Constructor Detail

      • JsonMetadataDeserializer

        public JsonMetadataDeserializer()
    • Method Detail

      • deserialize

        public Metadata deserialize​(com.google.gson.JsonElement element,
                                    Type type,
                                    com.google.gson.JsonDeserializationContext context)
                             throws com.google.gson.JsonParseException
        Deserializes a json object (equivalent to: Map) into a Metadata object.
        Specified by:
        deserialize in interface com.google.gson.JsonDeserializer<Metadata>
        Parameters:
        element - to serialize
        type - (ignored)
        context - (ignored)
        Returns:
        Metadata
        Throws:
        com.google.gson.JsonParseException - if element is not able to be parsed