in dingtalk/php/src/crm_1_0/Models/DescribeMetaModelResponseBody/metaModelDTOList/items/props.php [407:583]
public function toMap()
{
$res = [];
if (null !== $this->actionName) {
$res['actionName'] = $this->actionName;
}
if (null !== $this->align) {
$res['align'] = $this->align;
}
if (null !== $this->availableTemplates) {
$res['availableTemplates'] = [];
if (null !== $this->availableTemplates && \is_array($this->availableTemplates)) {
$n = 0;
foreach ($this->availableTemplates as $item) {
$res['availableTemplates'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
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->choice) {
$res['choice'] = $this->choice;
}
if (null !== $this->content) {
$res['content'] = $this->content;
}
if (null !== $this->dataSource) {
$res['dataSource'] = null !== $this->dataSource ? $this->dataSource->toMap() : null;
}
if (null !== $this->defaultColor) {
$res['defaultColor'] = $this->defaultColor;
}
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->fieldId) {
$res['fieldId'] = $this->fieldId;
}
if (null !== $this->fields) {
$res['fields'] = [];
if (null !== $this->fields && \is_array($this->fields)) {
$n = 0;
foreach ($this->fields as $item) {
$res['fields'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
if (null !== $this->format) {
$res['format'] = $this->format;
}
if (null !== $this->formula) {
$res['formula'] = $this->formula;
}
if (null !== $this->invisible) {
$res['invisible'] = $this->invisible;
}
if (null !== $this->label) {
$res['label'] = $this->label;
}
if (null !== $this->labelEditableFreeze) {
$res['labelEditableFreeze'] = $this->labelEditableFreeze;
}
if (null !== $this->limit) {
$res['limit'] = $this->limit;
}
if (null !== $this->link) {
$res['link'] = $this->link;
}
if (null !== $this->mode) {
$res['mode'] = $this->mode;
}
if (null !== $this->multi) {
$res['multi'] = $this->multi;
}
if (null !== $this->multiple) {
$res['multiple'] = $this->multiple;
}
if (null !== $this->needDetail) {
$res['needDetail'] = $this->needDetail;
}
if (null !== $this->notPrint) {
$res['notPrint'] = $this->notPrint;
}
if (null !== $this->notUpper) {
$res['notUpper'] = $this->notUpper;
}
if (null !== $this->options) {
$res['options'] = [];
if (null !== $this->options && \is_array($this->options)) {
$n = 0;
foreach ($this->options as $item) {
$res['options'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
if (null !== $this->payEnable) {
$res['payEnable'] = $this->payEnable;
}
if (null !== $this->placeholder) {
$res['placeholder'] = $this->placeholder;
}
if (null !== $this->quote) {
$res['quote'] = $this->quote;
}
if (null !== $this->ratio) {
$res['ratio'] = $this->ratio;
}
if (null !== $this->relateSource) {
$res['relateSource'] = [];
if (null !== $this->relateSource && \is_array($this->relateSource)) {
$n = 0;
foreach ($this->relateSource as $item) {
$res['relateSource'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
if (null !== $this->required) {
$res['required'] = $this->required;
}
if (null !== $this->requiredEditableFreeze) {
$res['requiredEditableFreeze'] = $this->requiredEditableFreeze;
}
if (null !== $this->rule) {
$res['rule'] = [];
if (null !== $this->rule && \is_array($this->rule)) {
$n = 0;
foreach ($this->rule as $item) {
$res['rule'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
if (null !== $this->sortable) {
$res['sortable'] = $this->sortable;
}
if (null !== $this->spread) {
$res['spread'] = $this->spread;
}
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->verticalPrint) {
$res['verticalPrint'] = $this->verticalPrint;
}
if (null !== $this->watermark) {
$res['watermark'] = $this->watermark;
}
return $res;
}