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