public class CardParser
extends java.lang.Object
Card objects returned from the server.| Constructor and Description |
|---|
CardParser() |
| Modifier and Type | Method and Description |
|---|---|
static Card |
parseCard(org.json.JSONObject objectCard)
Convert a
JSONObject into a Card object. |
static Card |
parseCard(java.lang.String jsonCard)
Parse the card directly from a JSON-formatted
String value. |
@NonNull public static Card parseCard(java.lang.String jsonCard) throws org.json.JSONException
String value.jsonCard - the raw JSONCard object represented by the JSONorg.json.JSONException - if the String is improperly formatted or is missing required values