List of usage examples for com.google.gson JsonDeserializer interface-usage
From source file com.bccriskadvisory.link.rest.gson.ZonedDateTimeAdapter.java
public class ZonedDateTimeAdapter extends AbstractLogSupported implements JsonDeserializer<ZonedDateTime>, JsonSerializer<ZonedDateTime> { public static final DateTimeFormatter JSON_PATTERN = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSX"); @Override
From source file com.bekwam.resignator.model.ConfigurationJSONAdapter.java
/**
* Converts JSON to and from the Configuration domain object
*
* @author carl_000
* @since 1.0.0
*/
From source file com.berniesanders.fieldthebern.parsing.CanvassDataSerializer.java
/** * Custom Gson deserializer for 'ApiItem' with a mix of 'pages' and 'collections' as children */ public class CanvassDataSerializer implements JsonSerializer<CanvassData>, JsonDeserializer<CanvassData> { @Override
From source file com.berniesanders.fieldthebern.parsing.CollectionDeserializer.java
/** * Custom Gson deserializer for 'ApiItem' with a mix of 'pages' and 'collections' as children */ public class CollectionDeserializer implements JsonDeserializer<ApiItem>, JsonSerializer<ApiItem> { @Override
From source file com.berniesanders.fieldthebern.parsing.PageContentDeserializer.java
/**
* Custom Gson deserializer for page 'content' to deserialize items into 'h1' 'p' etc
*
* TODO: this could use some unit tests
* TODO: We'll need to do something similar with page.content json arrays of 'h1' 'h2' 'p' etc
*/
From source file com.birbit.jsonapi.JsonApiDeserializer.java
@SuppressWarnings("WeakerAccess") public class JsonApiDeserializer<T> implements JsonDeserializer<JsonApiResponse> { Map<String, JsonApiResourceDeserializer<?>> deserializerMap; final Map<Class, String> typeMapping;
From source file com.birbit.jsonapi.JsonApiLinksDeserializer.java
@SuppressWarnings("WeakerAccess") public class JsonApiLinksDeserializer implements JsonDeserializer<JsonApiLinks> { public static final JsonApiLinksDeserializer INSTANCE = new JsonApiLinksDeserializer(); private JsonApiLinksDeserializer() { }
From source file com.blackypaw.mc.i18n.chat.ChatComponentDeserializer.java
/**
* This class provides a Gson deserializer that converts JSON formatted chat messages back into
* chat components.
*
* @author BlackyPaw
* @version 1.0
From source file com.bynder.sdk.util.BooleanTypeAdapter.java
/** * Class responsible for converting integers to booleans when deserializing the JSON response * returned by the API. This class is used when the {@link Retrofit} object is instantiated. */ public class BooleanTypeAdapter implements JsonDeserializer<Boolean> {
From source file com.bzcentre.dapiPush.MeetingPayload.java
public class MeetingPayload implements JsonDeserializer<MeetingPayload>, IMeetingPayload { private final static String TAG = "[MeetingPayload]"; private Aps aps = new Aps(); private String dapi = null; private String acme1 = null; // userSession.myID;