Example usage for com.google.gson JsonDeserializer interface-usage

List of usage examples for com.google.gson JsonDeserializer interface-usage

Introduction

In this page you can find the example usage for com.google.gson JsonDeserializer interface-usage.

Usage

From source file com.hkm.disqus.api.gson.ApplicationsUsageDeserializer.java

/**
 * Custom deserializer to convert Disqus usage nested arrays into a map
 */
public class ApplicationsUsageDeserializer implements JsonDeserializer<Usage> {

    @Override

From source file com.hp.ov.sdk.adaptors.PortTelemetrySerializationAdapter.java

public class PortTelemetrySerializationAdapter
        implements JsonSerializer<PortTelemetry>, JsonDeserializer<PortTelemetry> {

    @Override
    public PortTelemetry deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)
            throws JsonParseException {

From source file com.hp.ov.sdk.adaptors.StorageCapabilitiesDeserializer.java

public class StorageCapabilitiesDeserializer implements JsonDeserializer<StorageCapabilities> {

    @Override
    public StorageCapabilities deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)
            throws JsonParseException {

From source file com.hp.ov.sdk.adaptors.StoragePoolSerializationAdapter.java

public class StoragePoolSerializationAdapter implements JsonSerializer<StoragePool>, JsonDeserializer<StoragePool> {

    @Override
    public StoragePool deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)
            throws JsonParseException {

From source file com.hyperaware.conference.android.eventmobi.parser.gson.BooleanDeserializer.java

public class BooleanDeserializer implements JsonDeserializer<Boolean> {

    @Override
    public Boolean deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)
            throws JsonParseException {
        return "1".equals(json.getAsString());

From source file com.hyperaware.conference.eventmobi.parser.gson.BooleanDeserializer.java

public class BooleanDeserializer implements JsonDeserializer<Boolean> {

    @Override
    public Boolean deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)
            throws JsonParseException {
        return "1".equals(json.getAsString());

From source file com.ibasco.agql.protocols.supercell.coc.webapi.adapters.CocLeagueSeasonDeserializer.java

public class CocLeagueSeasonDeserializer implements JsonDeserializer<CocLeagueSeason> {
    private static final Logger log = LoggerFactory.getLogger(CocLeagueSeasonDeserializer.class);

    @Override
    public CocLeagueSeason deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)
            throws JsonParseException {

From source file com.ibasco.agql.protocols.valve.csgo.webapi.adapters.CsgoDatacenterStatusDeserializer.java

public class CsgoDatacenterStatusDeserializer implements JsonDeserializer<List<CsgoDatacenterStatus>> {

    private static final Logger log = LoggerFactory.getLogger(CsgoDatacenterStatusDeserializer.class);

    @Override
    public List<CsgoDatacenterStatus> deserialize(JsonElement json, Type typeOfT,

From source file com.ibasco.agql.protocols.valve.steam.webapi.adapters.SteamAssetClassInfoMapDeserializer.java

/**
 * Created by raffy on 10/27/2016.
 */
public class SteamAssetClassInfoMapDeserializer implements JsonDeserializer<Map<String, SteamAssetClassInfo>> {
    private static final Logger log = LoggerFactory.getLogger(SteamAssetClassInfoMapDeserializer.class);

From source file com.ibasco.agql.protocols.valve.steam.webapi.adapters.SteamAssetDescDeserializer.java

/**
 * Created by raffy on 10/27/2016.
 */
public class SteamAssetDescDeserializer implements JsonDeserializer<SteamAssetDescription> {
    private static final Logger log = LoggerFactory.getLogger(SteamAssetDescDeserializer.class);