	public static MessageToMediationService valueOf(String json) {
		try {
			JSONObject o = new JSONObject(json);
			String webapp =o.getString("webappname");
			String entityTesto =o.getString("entityTesto");
			int entityId =o.getInt("entityId");
			MessageToMediationService messageToMediationService = new MessageToMediationService(webapp,entityId,entityTesto);
			messageToMediationService.setMediationApproved(o.getBoolean("mediationApproved"));
			messageToMediationService.setParseApproved(o.getBoolean("parseApproved"));
			messageToMediationService.setTimestamp(o.getLong("timestamp"));
			messageToMediationService.setNote(o.getString("note"));
			return messageToMediationService;
		} catch (JSONException e) {
			return null;
		}
	}

	public static MessageToMediationService valueOf(String json) {
		try {
			JSONObject o = new JSONObject(json);
			String webapp =o.getString("webappname");
			String entityTesto =o.getString("entityTesto");
			int entityId =o.getInt("entityId");
			MessageToMediationService messageToMediationService = new MessageToMediationService(webapp,entityId,entityTesto);
			messageToMediationService.setMediationApproved(o.getBoolean("mediationApproved"));
			messageToMediationService.setParseApproved(o.getBoolean("parseApproved"));
			messageToMediationService.setTimestamp(o.getLong("timestamp"));
			if(o.has("note"))
			messageToMediationService.setNote(o.getString("note"));
			return messageToMediationService;
		} catch (JSONException e) {
			return null;
		}
	}
