public class FbBotMillJsonUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
fromJson(String json,
Class<T> T)
From json.
|
static String |
toJson(Object src)
To json.
|
String |
toString() |
public static <T> T fromJson(String json, Class<T> T)
T - the generic typejson - the string from which the object is to be deserialized.T - the type of the desired object.Gson.fromJson(String, Class)public static String toJson(Object src)
src - the object for which Json representation is to be created
setting for Gson .Gson.toJson(Object)Copyright © 2017 BotMill. All rights reserved.