MetadataValueAdapter

public class MetadataValueAdapter implements JsonDeserializer<MetadataValue>

Deserializes MetadataValue coming from JSON. This metadata values can be both arrays or single strings, hence the parsing here.

Methods

deserialize

public MetadataValue deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)