@Override
    public JSONObject getJson() throws JSONException {
        JSONObject json = create();
        json.put("id", id);
        if (eventName != null)
            json.put("eventName", eventName);
        if (createDate != null) {
            json.put("createDate", createDate);
        }
        if (createUser != null) {
            json.put("createUser", createUser);
        }
        if (source != null) {
            json.put("source", source);
        }
        if (category != null) {
            json.put("category", category);
        }
        if (subCategory != null) {
            json.put("subCategory", subCategory);
        }
        if (ownerType != null) {
            json.put("ownerType", ownerType);
        }
        if (ownerId != null) {
            json.put("ownerId", ownerId);
        }
        if (comment != null) {
            json.put("comment", comment);
        }
        return json;
    }
@ Override public JSONObject getJson ( ) throws JSONException { JSONObject json = create ( ) ; json . put ( "id" , id ) ; if ( eventName != null ) json . put ( "eventName" , eventName ) ; if ( createDate != null ) { json . put ( "createDate" , createDate ) ; } if ( createUser != null ) { json . put ( "createUser" , createUser ) ; } if ( source != null ) { json . put ( "source" , source ) ; } if ( category != null ) { json . put ( "category" , category ) ; } if ( subCategory != null ) { json . put ( "subCategory" , subCategory ) ; } if ( ownerType != null ) { json . put ( "ownerType" , ownerType ) ; } if ( ownerId != null ) { json . put ( "ownerId" , ownerId ) ; } if ( comment != null ) { json . put ( "comment" , comment ) ; } return json ; }
/* (non-Javadoc)
@see com.centurylink.mdw.common.service.Jsonable#getJson()