fluid-api/src/main/java/com/fluidbpm/program/api/vo/license/LicenseRequest.java
@Override
    public JSONObject toJsonObject() throws JSONException
    {
        JSONObject returnVal = super.toJsonObject();

        //Machine Name...
        if(this.getMachineName() != null)
        {
            returnVal.put(JSONMapping.MACHINE_NAME,
                    this.getMachineName());
        }

        //Cipher Text...
        if(this.getLicenseCipherText() != null)
        {
            returnVal.put(JSONMapping.LICENSE_CIPHER_TEXT,
                    this.getLicenseCipherText());
        }

        //License Type...
        if(this.getLicenseType() != null)
        {
            returnVal.put(JSONMapping.LICENSE_TYPE,
                    this.getLicenseType());
        }

        //User Count...
        if(this.getUserCount() != null)
        {
            returnVal.put(JSONMapping.USER_COUNT,
                    this.getUserCount());
        }

        //Date Valid From...
        if(this.getDateValidFrom() != null)
        {
            returnVal.put(JSONMapping.DATE_VALID_FROM,
                    this.getDateAsLongFromJson(this.getDateValidFrom()));
        }

        //Date Valid To...
        if(this.getDateValidTo() != null)
        {
            returnVal.put(JSONMapping.DATE_VALID_TO,
                    this.getDateAsLongFromJson(this.getDateValidTo()));
        }

        return returnVal;
    }
@Override
    public JSONObject toJsonObject() throws JSONException
    {
        JSONObject returnVal = super.toJsonObject();

        //Machine Name...
        if(this.getMachineName() != null)
        {
            returnVal.put(JSONMapping.MACHINE_NAME,
                    this.getMachineName());
        }

        //Cipher Text...
        if(this.getLicenseCipherText() != null)
        {
            returnVal.put(JSONMapping.LICENSE_CIPHER_TEXT,
                    this.getLicenseCipherText());
        }

        //License Type...
        if(this.getLicenseType() != null)
        {
            returnVal.put(JSONMapping.LICENSE_TYPE,
                    this.getLicenseType());
        }

        //User Count...
        if(this.getUserCount() != null)
        {
            returnVal.put(JSONMapping.USER_COUNT,
                    this.getUserCount());
        }

        //Date Valid From...
        if(this.getDateValidFrom() != null)
        {
            returnVal.put(JSONMapping.DATE_VALID_FROM,
                    this.getDateAsLongFromJson(this.getDateValidFrom()));
        }

        //Date Valid To...
        if(this.getDateValidTo() != null)
        {
            returnVal.put(JSONMapping.DATE_VALID_TO,
                    this.getDateAsLongFromJson(this.getDateValidTo()));
        }

        return returnVal;
    }
Conversion to {@code JSONObject} from Java Object.

@return {@code JSONObject} representation of {@code LicenseRequest}
@throws JSONException If there is a problem with the JSON Body.

@see ABaseFluidJSONObject#toJsonObject()