/** * Creates an estimate sum from a JSON payload. * * @param json JSON payload */ protected EstimateSum(JSONObject json) { Map map = json; value = Field.getDouble(map.get("value")); text = Field.getString(map.get("text")); }
/** * Creates an estimate sum from a JSON payload. * * @param json JSON payload */ protected EstimateSum(JSONObject json) { Map map = json; value = Field.getDouble(map.get("value")); text = Field.getString(map.get("text")); }
/** * Creates an estimate sum from a JSON payload. * * @param json JSON payload */ protected EpicStats(JSONObject json) { Map map = json; notDoneEstimate = Field.getDouble(map.get("notDoneEstimate")); doneEstimate = Field.getDouble(map.get("doneEstimate")); estimated = Field.getInteger(map.get("estimated")); notEstimated = Field.getInteger(map.get("notEstimated")); notDone = Field.getInteger(map.get("notDone")); done = Field.getInteger(map.get("done")); }
/** * Creates an estimate sum from a JSON payload. * * @param json JSON payload */ protected EpicStats(JSONObject json) { Map map = json; notDoneEstimate = Field.getDouble(map.get("notDoneEstimate")); doneEstimate = Field.getDouble(map.get("doneEstimate")); estimated = Field.getInteger(map.get("estimated")); notEstimated = Field.getInteger(map.get("notEstimated")); notDone = Field.getInteger(map.get("notDone")); done = Field.getInteger(map.get("done")); }
/** * Creates an estimate statistic from a JSON payload. * * @param json JSON payload */ protected EstimateStatistic(JSONObject json) { Map map = json; statFieldId = Field.getString(map.get("statFieldId")); if (map.containsKey("statFieldValue") && map.get("statFieldValue") instanceof JSONObject) { Map val = (Map)json.get("statFieldValue"); statFieldValue = Field.getDouble(val.get("value")); statFieldText = Field.getString(val.get("text")); } }
/** * Creates an estimate statistic from a JSON payload. * * @param json JSON payload */ protected EstimateStatistic(JSONObject json) { Map map = json; statFieldId = Field.getString(map.get("statFieldId")); if (map.containsKey("statFieldValue") && map.get("statFieldValue") instanceof JSONObject) { Map val = (Map)json.get("statFieldValue"); statFieldValue = Field.getDouble(val.get("value")); statFieldText = Field.getString(val.get("text")); } }