public class Serializer extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Serializer.ParseToken
Helper class for returning serialized portions from gson.
|
| Modifier and Type | Field and Description |
|---|---|
static com.google.gson.Gson |
gson |
protected static Logger |
logger |
| Constructor and Description |
|---|
Serializer() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
fromJson(String s,
Class<T> klazz) |
static <T> T |
fromJson(String s,
com.google.gson.reflect.TypeToken<T> t) |
static MapResponse |
fromJsonMapResponse(String json,
String key,
Type t) |
static <T extends FlowDomainObject> |
fromJsonResponse(String s,
Class<T> klazz) |
static String |
toJson(Object o) |
static String |
toJson(String key,
Object o) |
protected static Logger logger
public static com.google.gson.Gson gson
public static <T extends FlowDomainObject> ObjectResponse<T> fromJsonResponse(String s, Class<T> klazz)
public static MapResponse fromJsonMapResponse(String json, String key, Type t)
public static <T> T fromJson(String s, com.google.gson.reflect.TypeToken<T> t)
Copyright © 2016. All rights reserved.