@Override public JSONObject toJSONObject() throws JSONException {
  JSONObject jo=super.toJSONObject();
  if (policyName != null) {
    jo.put("policyName",policyName);
  }
  return jo;
}

@ Override public JSONObject toJSONObject ( ) throws JSONException { JSONObject jo = super . toJSONObject ( ) ; if ( policyName != null ) { jo . put ( "policyName" , policyName ) ; } return jo ; }
returns jsonobject mapping of the object
