public class JSON extends Object
| Constructor and Description |
|---|
JSON(ApiClient apiClient)
JSON constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
deserialize(String body,
Type returnType)
Deserialize the given JSON string to Java object.
|
com.google.gson.Gson |
getGson()
Get Gson.
|
String |
serialize(Object obj)
Serialize the given Java object into JSON string.
|
void |
setGson(com.google.gson.Gson gson)
Set Gson.
|
public JSON(ApiClient apiClient)
apiClient - An instance of ApiClientpublic com.google.gson.Gson getGson()
public void setGson(com.google.gson.Gson gson)
gson - Gsonpublic String serialize(Object obj)
obj - ObjectCopyright © 2021. All rights reserved.