src/org/ohmage/domain/campaign/prompt/MediaPrompt.java
@Override
	public JSONObject toJson() throws JSONException {
		JSONObject result = super.toJson();
		
		if(maxFileSize != null) {
			result.put(JSON_KEY_MAX_FILESIZE, maxFileSize);
		}
		
		return result;
	}
/**
	 * Creates a JSONObject that represents this prompt.
	 * 
	 * @return A JSONObject that represents this prompt.
	 * 
	 * @throws JSONException There was a problem creating the JSONObject.
	 */
Creates a JSONObject that represents this prompt.

@return A JSONObject that represents this prompt.

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