Class SerializationUtil
java.lang.Object
com.iland.core.web.rest.serialization.SerializationUtil
Serialization Util.
- Author:
- Cory Snyder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.gson.GsonBuilderstatic com.google.gson.GsonGets a gson instance with type adapters registered for our models.
-
Field Details
-
V1_DEFAULT_API_VERSION
public static final double V1_DEFAULT_API_VERSION- See Also:
-
-
Constructor Details
-
SerializationUtil
public SerializationUtil()
-
-
Method Details
-
getBaseGsonBuider
public static com.google.gson.GsonBuilder getBaseGsonBuider() -
getGson
Gets a gson instance with type adapters registered for our models.- Parameters:
version- the version to use. If null, versions on model are ignored.withSecurityChars- whether to generate json with security chars.- Returns:
Gson
-