com.statsig.internal.GsonUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of serversdk-test Show documentation
Show all versions of serversdk-test Show documentation
A Server SDK for macOS platform
package com.statsig.internal;
import com.google.gson.*;
import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.Map;
public class GsonUtil {
private static final Gson gson = new GsonBuilder()
.registerTypeAdapter(Map.class, new MapDeserializer())
.create();
public static Gson getGson() {
return gson;
}
static class MapDeserializer implements JsonDeserializer