public class LiBasePostModel extends java.lang.Object implements LiPostModel
Base class for post request model, implement LiPostModel. This class provides implementation of
toJsonString() method and toJson() method,
to help in serialization and deserialization of post model object. All post request model must extend this base
class,
to take advantage of serialization and deserialization.
| Modifier and Type | Class and Description |
|---|---|
protected class |
LiBasePostModel.Data |
| Constructor and Description |
|---|
LiBasePostModel() |
| Modifier and Type | Method and Description |
|---|---|
JsonObject |
toJson()
Method to create JsonObject of the class, for post request
|
java.lang.String |
toJsonString()
Method to create JsonString of class, for post request
|
public JsonObject toJson()
LiPostModeltoJson in interface LiPostModelpublic java.lang.String toJsonString()
LiPostModeltoJsonString in interface LiPostModel