public function toMap()

in dingtalk/php/src/workflow_1_0/Models/PremiumGetFormSchemaResponseBody/result/schemaContent/items/props.php [379:540]


    public function toMap()
    {
        $res = [];
        if (null !== $this->actionName) {
            $res['actionName'] = $this->actionName;
        }
        if (null !== $this->align) {
            $res['align'] = $this->align;
        }
        if (null !== $this->appId) {
            $res['appId'] = $this->appId;
        }
        if (null !== $this->asyncCondition) {
            $res['asyncCondition'] = $this->asyncCondition;
        }
        if (null !== $this->attendTypeLabel) {
            $res['attendTypeLabel'] = $this->attendTypeLabel;
        }
        if (null !== $this->behaviorLinkage) {
            $res['behaviorLinkage'] = [];
            if (null !== $this->behaviorLinkage && \is_array($this->behaviorLinkage)) {
                $n = 0;
                foreach ($this->behaviorLinkage as $item) {
                    $res['behaviorLinkage'][$n++] = null !== $item ? $item->toMap() : $item;
                }
            }
        }
        if (null !== $this->bizAlias) {
            $res['bizAlias'] = $this->bizAlias;
        }
        if (null !== $this->bizType) {
            $res['bizType'] = $this->bizType;
        }
        if (null !== $this->childFieldVisible) {
            $res['childFieldVisible'] = $this->childFieldVisible;
        }
        if (null !== $this->choice) {
            $res['choice'] = $this->choice;
        }
        if (null !== $this->commonBizType) {
            $res['commonBizType'] = $this->commonBizType;
        }
        if (null !== $this->disabled) {
            $res['disabled'] = $this->disabled;
        }
        if (null !== $this->duration) {
            $res['duration'] = $this->duration;
        }
        if (null !== $this->durationLabel) {
            $res['durationLabel'] = $this->durationLabel;
        }
        if (null !== $this->eSign) {
            $res['eSign'] = $this->eSign;
        }
        if (null !== $this->extract) {
            $res['extract'] = $this->extract;
        }
        if (null !== $this->fieldsInfo) {
            $res['fieldsInfo'] = $this->fieldsInfo;
        }
        if (null !== $this->format) {
            $res['format'] = $this->format;
        }
        if (null !== $this->formula) {
            $res['formula'] = $this->formula;
        }
        if (null !== $this->hidden) {
            $res['hidden'] = $this->hidden;
        }
        if (null !== $this->hiddenInApprovalDetail) {
            $res['hiddenInApprovalDetail'] = $this->hiddenInApprovalDetail;
        }
        if (null !== $this->hideLabel) {
            $res['hideLabel'] = $this->hideLabel;
        }
        if (null !== $this->holidayOptions) {
            $res['holidayOptions'] = $this->holidayOptions;
        }
        if (null !== $this->id) {
            $res['id'] = $this->id;
        }
        if (null !== $this->label) {
            $res['label'] = $this->label;
        }
        if (null !== $this->labelEditableFreeze) {
            $res['labelEditableFreeze'] = $this->labelEditableFreeze;
        }
        if (null !== $this->link) {
            $res['link'] = $this->link;
        }
        if (null !== $this->mainTitle) {
            $res['mainTitle'] = $this->mainTitle;
        }
        if (null !== $this->notPrint) {
            $res['notPrint'] = $this->notPrint;
        }
        if (null !== $this->notUpper) {
            $res['notUpper'] = $this->notUpper;
        }
        if (null !== $this->objOptions) {
            $res['objOptions'] = [];
            if (null !== $this->objOptions && \is_array($this->objOptions)) {
                $n = 0;
                foreach ($this->objOptions as $item) {
                    $res['objOptions'][$n++] = null !== $item ? $item->toMap() : $item;
                }
            }
        }
        if (null !== $this->options) {
            $res['options'] = $this->options;
        }
        if (null !== $this->payEnable) {
            $res['payEnable'] = $this->payEnable;
        }
        if (null !== $this->placeholder) {
            $res['placeholder'] = $this->placeholder;
        }
        if (null !== $this->push) {
            $res['push'] = null !== $this->push ? $this->push->toMap() : null;
        }
        if (null !== $this->pushToAttendance) {
            $res['pushToAttendance'] = $this->pushToAttendance;
        }
        if (null !== $this->pushToCalendar) {
            $res['pushToCalendar'] = $this->pushToCalendar;
        }
        if (null !== $this->required) {
            $res['required'] = $this->required;
        }
        if (null !== $this->requiredEditableFreeze) {
            $res['requiredEditableFreeze'] = $this->requiredEditableFreeze;
        }
        if (null !== $this->showAttendOptions) {
            $res['showAttendOptions'] = $this->showAttendOptions;
        }
        if (null !== $this->staffStatusEnabled) {
            $res['staffStatusEnabled'] = $this->staffStatusEnabled;
        }
        if (null !== $this->statField) {
            $res['statField'] = [];
            if (null !== $this->statField && \is_array($this->statField)) {
                $n = 0;
                foreach ($this->statField as $item) {
                    $res['statField'][$n++] = null !== $item ? $item->toMap() : $item;
                }
            }
        }
        if (null !== $this->tableViewMode) {
            $res['tableViewMode'] = $this->tableViewMode;
        }
        if (null !== $this->unit) {
            $res['unit'] = $this->unit;
        }
        if (null !== $this->useCalendar) {
            $res['useCalendar'] = $this->useCalendar;
        }
        if (null !== $this->verticalPrint) {
            $res['verticalPrint'] = $this->verticalPrint;
        }

        return $res;
    }