T - The concrete type of the modelpublic class Resource<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
org.json.JSONObject |
jsonObj |
| Constructor and Description |
|---|
Resource(BufferedReader rd) |
Resource(InputStream is) |
Resource(org.json.JSONObject jsonObj) |
Resource(String jsonStr) |
public Resource(org.json.JSONObject jsonObj)
public Resource(String jsonStr)
public Resource(InputStream is) throws IOException
IOExceptionpublic Resource(BufferedReader rd) throws IOException
IOExceptionpublic BigDecimal reqBigDecimal(String key)
public BigDecimal optBigDecimal(String key)
public org.json.JSONObject reqJSONObject(String key)
public org.json.JSONObject optJSONObject(String key)
public org.json.JSONArray reqJSONArray(String key)
public org.json.JSONArray optJSONArray(String key)
public <S extends Resource> List<S> reqList(String key, Class<S> claz)
S - The sub-resource typepublic <S> List<S> optList(String key, Class<S> claz)
S - The sub-resource typepublic String toJson()
protected static void apiVersionCheck(org.json.JSONObject jsonObj)
Copyright © 2023 ChargeBee. All rights reserved.