public JSONObject constructSlotJson()

in DeliveryApi/ApiHandlers/tst/com/ilmlf/delivery/api/handlers/CreateSlotsTest.java [243:259]


  public JSONObject constructSlotJson(Object numDeliveries, Object from, Object to) {
    JSONObject jsonObj = new JSONObject();

    if (numDeliveries != null) {
      jsonObj.put("numDeliveries", numDeliveries);
    }

    if (from != null) {
      jsonObj.put("from", from);
    }

    if (to != null) {
      jsonObj.put("to", to);
    }

    return jsonObj;
  }