public ModelGenerator
Interface that makes it possible to generate a Model object using JSON data This class should be inherited by the companion object of each Model class.
Modifier and Type | Method and Description |
---|---|
Model |
fromJson(org.json.JSONObject data)
This method must be implemented by child classes. It generates a
new Model object from a JSONObject object.
|
Model fromJson(org.json.JSONObject data)
This method must be implemented by child classes. It generates a new Model object from a JSONObject object.
data
- : The JSON data to parse