private void jsonToMembers(JSONObject payload) throws CommandParseException {
		if (payload == null) {
			throw new CommandParseException("no payload found");
		}
		try {
			if (payload.has("state")) {
				this.state = payload.getInt("state");
			}
			if (payload.has("timeindex")) {
				this.timeindex = payload.getDouble("timeindex");
			}
			if (payload.has("duration")) {
				this.duration = payload.getDouble("duration");
			}
			if (payload.has("isControlOnScreen")) {
				this.isControlOnScreen = payload.getBoolean("isControlOnScreen");
			}
			if (payload.has("humanDuration")) {
				this.setHumanDuration(payload.getString("humanDuration"));
			}
			if (payload.has("title")) {
				this.title = payload.getString("title");
			}
		} catch (JSONException e) {
			e.printStackTrace();
			throw new CommandParseException("Error parsing JSON");
		}
	}