package com.parse;

import org.json.JSONException;
import org.json.JSONObject;
import p137.C2742;

/* JADX INFO: loaded from: classes.dex */
public abstract class ParseEventuallyQueue {
    public boolean isConnected;

    public ParseRESTCommand commandFromJSON(JSONObject jSONObject) throws JSONException {
        if (ParseRESTCommand.isValidCommandJSONObject(jSONObject)) {
            return ParseRESTCommand.fromJSONObject(jSONObject);
        }
        if (jSONObject.has("op")) {
            return null;
        }
        throw new JSONException("Failed to load command from JSON.");
    }

    public C2742<JSONObject> waitForOperationSetAndEventuallyPin(ParseOperationSet parseOperationSet, EventuallyPin eventuallyPin) {
        return C2742.m4805((Object) null);
    }
}
