src/org/ohmage/domain/campaign/prompt/PhotoPrompt.java
@Override
	public JSONObject toJson() throws JSONException {
		JSONObject result = super.toJson();
		
		if(maxDimension != null) {
			result.put(JSON_KEY_MAXIMUM_DIMENSION, maxDimension);
		}
		if(jpegQuality != null) {
			result.put(JSON_KEY_JPEG_QUALITY, jpegQuality);
		}

		return result;
	}
/**
	 * Creates a JSONObject that represents this photo prompt.
	 * 
	 * @return A JSONObject that represents this photo prompt.
	 * 
	 * @throws JSONException There was a problem creating the JSONObject.
	 */
Creates a JSONObject that represents this photo prompt.

@return A JSONObject that represents this photo prompt.

@throws JSONException There was a problem creating the JSONObject.
Creates a JSONObject that represents this photo prompt . @return A JSONObject that represents this photo prompt . @throws JSONException There was a problem creating the JSONObject .
@Override
	public JSONObject toJson() throws JSONException {
		JSONObject result = super.toJson();
		if(maxDimension != null) {
			result.put(JSON_KEY_MAXIMUM_DIMENSION, maxDimension);
		}
		if(jpegQuality != null) {
			result.put(JSON_KEY_JPEG_QUALITY, jpegQuality);
		}
		return result;
	}
@ Override public JSONObject toJson ( ) throws JSONException { JSONObject result = super . toJson ( ) ; if ( maxDimension != null ) { result . put ( JSON_KEY_MAXIMUM_DIMENSION , maxDimension ) ; } if ( jpegQuality != null ) { result . put ( JSON_KEY_JPEG_QUALITY , jpegQuality ) ; } return result ; }
Creates a JSONObject that represents this photo prompt.
Creates a JSONObject that represents this photo prompt .