public static class Goal.Companion implements ModelGenerator, QueryAble
Companion object that implements static methods to generate the model using a JSONObject.
Modifier and Type | Method and Description |
---|---|
Goal |
fromJson(org.json.JSONObject data)
Generates the model using a JSONObject
|
GoalQuery |
query(ApiConnection apiConnection)
Generates a Query object with which the model may be queried
|
fromJson
public Goal fromJson(org.json.JSONObject data)
Generates the model using a JSONObject
data
- : The JSON to parsepublic GoalQuery query(ApiConnection apiConnection)
Generates a Query object with which the model may be queried
apiConnection
- : The API connection to use with the query