public Booking(JSONObject json) throws JSONException {
		if (json.has(ID)) {
			this.setId(json.getString(ID));
		}
		if (json.has(CANCELED)) {
			this.setCanceled(json.getBoolean(CANCELED));
		}
		if (json.has(BOOKTIME)) {
			this.setBooktime(StringUtil.parseDate(json.getString(BOOKTIME)));
		}
		if (json.has(STATUS)) {
			this.setStatus(json.getString(STATUS));
		}
		if (json.has(PACKAGE_ID)) {
			this.setPackageId(json.getString(PACKAGE_ID));
		}
		if (json.has(BOOKING_CODE)) {
			this.setBookingCode(json.getString(BOOKING_CODE));
		}
	}