public abstract class Ind2uceEntity extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected static com.google.gson.Gson |
GSON_DEFAULT
The Constant GSON_DEFAULT.
|
protected static com.google.gson.Gson |
GSON_PLAIN
The Constant GSON_PLAIN.
|
protected static com.google.gson.Gson |
GSON_PRETTY
The Constant GSON_PRETTY.
|
protected String |
version
The version.
|
| Constructor and Description |
|---|
Ind2uceEntity() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Ind2uceEntity> |
fromJson(String json,
Class<T> clazz)
Deserializes an Ind2uceEntity from JSON.
|
static com.google.gson.Gson |
getGson()
Gets the gson.
|
String |
getVersion()
Gets the version.
|
String |
toJson(boolean pretty)
Serializes an Ind2uceEntity to JSON.
|
String |
toString() |
protected static final com.google.gson.Gson GSON_PLAIN
protected static final com.google.gson.Gson GSON_DEFAULT
protected static final com.google.gson.Gson GSON_PRETTY
protected String version
public static <T extends Ind2uceEntity> T fromJson(String json, Class<T> clazz)
T - the generic type (sub class of Ind2uceEntity)json - the serialized object in JSON notationclazz - the generic type (sub class of Ind2uceEntity)Ind2uceEntitypublic static com.google.gson.Gson getGson()
public String getVersion()
public String toJson(boolean pretty)
pretty - if true, pretty printing is enabledInd2uceEntityCopyright © 2018. All rights reserved.