fluid-api/src/main/java/com/fluidbpm/program/api/vo/role/RoleToFormFieldToFormDefinition.java
@Override
    public JSONObject toJsonObject() throws JSONException {

        JSONObject returnVal = super.toJsonObject();

        //Can Create...
        if(this.isCanCreateAndModify() != null)
        {
            returnVal.put(JSONMapping.CAN_CREATE_AND_MODIFY,
                    this.isCanCreateAndModify().booleanValue());
        }

        //Can View...
        if(this.isCanView() != null)
        {
            returnVal.put(JSONMapping.CAN_VIEW,
                    this.isCanView().booleanValue());
        }

        //Form Definition...
        if(this.getFormFieldToFormDefinition() != null)
        {
            returnVal.put(JSONMapping.FORM_FIELD_TO_FORM_DEFINITION,
                    this.getFormFieldToFormDefinition().toJsonObject());
        }

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

        JSONObject returnVal = super.toJsonObject();

        //Can Create...
        if(this.isCanCreateAndModify() != null)
        {
            returnVal.put(JSONMapping.CAN_CREATE_AND_MODIFY,
                    this.isCanCreateAndModify().booleanValue());
        }

        //Can View...
        if(this.isCanView() != null)
        {
            returnVal.put(JSONMapping.CAN_VIEW,
                    this.isCanView().booleanValue());
        }

        //Form Definition...
        if(this.getFormFieldToFormDefinition() != null)
        {
            returnVal.put(JSONMapping.FORM_FIELD_TO_FORM_DEFINITION,
                    this.getFormFieldToFormDefinition().toJsonObject());
        }

        return returnVal;
    }
@ Override public JSONObject toJsonObject ( ) throws JSONException { JSONObject returnVal = super . toJsonObject ( ) ; //Can Create... if ( this . isCanCreateAndModify ( ) != null ) { returnVal . put ( JSONMapping . CAN_CREATE_AND_MODIFY , this . isCanCreateAndModify ( ) . booleanValue ( ) ) ; } //Can View... if ( this . isCanView ( ) != null ) { returnVal . put ( JSONMapping . CAN_VIEW , this . isCanView ( ) . booleanValue ( ) ) ; } //Form Definition... if ( this . getFormFieldToFormDefinition ( ) != null ) { returnVal . put ( JSONMapping . FORM_FIELD_TO_FORM_DEFINITION , this . getFormFieldToFormDefinition ( ) . toJsonObject ( ) ) ; } return returnVal ; }
Conversion to {@code JSONObject} from Java Object.

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

@see ABaseFluidJSONObject#toJsonObject()
Conversion to { @code JSONObject } from Java Object .