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.actionml.DateTimeAdapter.java

/**
 * @author The ActionML Team (<a href="http://actionml.com">http://actionml.com</a>)
 *         04.02.17 16:51
 */
public class DateTimeAdapter implements JsonSerializer<DateTime>, JsonDeserializer<DateTime> {

From source file com.activiti.client.api.model.deserializer.ResultListDeserializer.java

/**
 * Created by jpascal on 19/01/2016.
 */
public class ResultListDeserializer<T> implements JsonDeserializer<ResultList<T>> {
    protected Class<T> clazz;

From source file com.addhen.voto.sdk.DateDeserializer.java

/**
 * @author Henry Addo
 */
public class DateDeserializer implements JsonDeserializer<Date> {

    private static final String[] DATE_FORMATS = new String[] { "yyyy-MM-dd", "yyyy-MM-dd h:mm:ss" };

From source file com.adyen.deserializer.MarketPayNotificationMessageDeserializer.java

public class MarketPayNotificationMessageDeserializer implements JsonDeserializer<GenericNotification> {
    @Override
    public GenericNotification deserialize(JsonElement jsonElement, Type type,
            JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
        JsonObject jsonObject = jsonElement.getAsJsonObject();

From source file com.alfresco.client.api.common.deserializer.EntryDeserializer.java

/**
 * Created by jpascal on 19/01/2016.
 */
public class EntryDeserializer<T> implements JsonDeserializer<T> {
    @Override
    public T deserialize(JsonElement je, Type type, JsonDeserializationContext jdc) throws JsonParseException {

From source file com.alfresco.client.api.common.deserializer.PagingDeserializer.java

/**
 * Created by jpascal on 19/01/2016.
 */
public class PagingDeserializer<T> implements JsonDeserializer<ResultPaging<T>> {
    protected Class<T> clazz;

From source file com.alfresco.client.api.search.deserializer.ResultSetPagingDeserializer.java

/**
 * Created by jpascal on 19/01/2016.
 */
public class ResultSetPagingDeserializer<T> implements JsonDeserializer<ResultSetRepresentation<T>> {
    protected Class<T> clazz;

From source file com.alignace.chargeio.mapper.gson.adapter.IPaymentTypeAdapter.java

public class IPaymentTypeAdapter implements JsonDeserializer<IPaymentMethod> {

    public IPaymentMethod deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)
            throws JsonParseException {

        final JsonObject wrapper = (JsonObject) json;

From source file com.alignace.chargeio.mapper.gson.adapter.TypeAdapter.java

public class TypeAdapter<F> implements JsonDeserializer<F> {

    private final Class<F> type;

    public TypeAdapter(Class<F> type) {
        this.type = type;

From source file com.android.volley.DateFormatter.java

/**
 * Formatter for date formats present in the GitHub v2 and v3 API.
 */
public class DateFormatter implements JsonDeserializer<Date>, JsonSerializer<Date> {

    private final DateFormat[] formats;