public static class User.Companion implements ModelGenerator
Companion object that implements static methods to generate the model using a JSONObject.
Modifier and Type | Method and Description |
---|---|
User |
fromJson(org.json.JSONObject data)
Generates the model using a JSONObject
|
fromJson
public User fromJson(org.json.JSONObject data)
Generates the model using a JSONObject
data
- : The JSON to parse