co.easimart.EasimartDecoder Maven / Gradle / Ivy
package co.easimart;
import android.util.Base64;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
/**
* A {@code EasimartDecoder} can be used to transform JSON data structures into actual objects, such as
* {@link EasimartObjects}.
*
* @see co.easimart.EasimartEncoder
*/
/** package */ class EasimartDecoder {
// This class isn't really a Singleton, but since it has no state, it's more efficient to get the
// default instance.
private static final EasimartDecoder INSTANCE = new EasimartDecoder();
public static EasimartDecoder get() {
return INSTANCE;
}
protected EasimartDecoder() {
// do nothing
}
/* package */ List