in dingtalk/php/src/workflow_1_0/Models/QuerySchemaByProcessCodeResponseBody/result/schemaContent/items/props.php [547:712]
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['actionName'])) {
$model->actionName = $map['actionName'];
}
if (isset($map['align'])) {
$model->align = $map['align'];
}
if (isset($map['appId'])) {
$model->appId = $map['appId'];
}
if (isset($map['asyncCondition'])) {
$model->asyncCondition = $map['asyncCondition'];
}
if (isset($map['attendTypeLabel'])) {
$model->attendTypeLabel = $map['attendTypeLabel'];
}
if (isset($map['behaviorLinkage'])) {
if (!empty($map['behaviorLinkage'])) {
$model->behaviorLinkage = [];
$n = 0;
foreach ($map['behaviorLinkage'] as $item) {
$model->behaviorLinkage[$n++] = null !== $item ? behaviorLinkage::fromMap($item) : $item;
}
}
}
if (isset($map['bizAlias'])) {
$model->bizAlias = $map['bizAlias'];
}
if (isset($map['bizType'])) {
$model->bizType = $map['bizType'];
}
if (isset($map['childFieldVisible'])) {
$model->childFieldVisible = $map['childFieldVisible'];
}
if (isset($map['choice'])) {
$model->choice = $map['choice'];
}
if (isset($map['commonBizType'])) {
$model->commonBizType = $map['commonBizType'];
}
if (isset($map['disabled'])) {
$model->disabled = $map['disabled'];
}
if (isset($map['duration'])) {
$model->duration = $map['duration'];
}
if (isset($map['durationLabel'])) {
$model->durationLabel = $map['durationLabel'];
}
if (isset($map['eSign'])) {
$model->eSign = $map['eSign'];
}
if (isset($map['extract'])) {
$model->extract = $map['extract'];
}
if (isset($map['fieldsInfo'])) {
$model->fieldsInfo = $map['fieldsInfo'];
}
if (isset($map['format'])) {
$model->format = $map['format'];
}
if (isset($map['formula'])) {
$model->formula = $map['formula'];
}
if (isset($map['hidden'])) {
$model->hidden = $map['hidden'];
}
if (isset($map['hiddenInApprovalDetail'])) {
$model->hiddenInApprovalDetail = $map['hiddenInApprovalDetail'];
}
if (isset($map['hideLabel'])) {
$model->hideLabel = $map['hideLabel'];
}
if (isset($map['holidayOptions'])) {
if (!empty($map['holidayOptions'])) {
$model->holidayOptions = $map['holidayOptions'];
}
}
if (isset($map['id'])) {
$model->id = $map['id'];
}
if (isset($map['label'])) {
$model->label = $map['label'];
}
if (isset($map['labelEditableFreeze'])) {
$model->labelEditableFreeze = $map['labelEditableFreeze'];
}
if (isset($map['link'])) {
$model->link = $map['link'];
}
if (isset($map['mainTitle'])) {
$model->mainTitle = $map['mainTitle'];
}
if (isset($map['notPrint'])) {
$model->notPrint = $map['notPrint'];
}
if (isset($map['notUpper'])) {
$model->notUpper = $map['notUpper'];
}
if (isset($map['objOptions'])) {
if (!empty($map['objOptions'])) {
$model->objOptions = [];
$n = 0;
foreach ($map['objOptions'] as $item) {
$model->objOptions[$n++] = null !== $item ? objOptions::fromMap($item) : $item;
}
}
}
if (isset($map['options'])) {
if (!empty($map['options'])) {
$model->options = $map['options'];
}
}
if (isset($map['payEnable'])) {
$model->payEnable = $map['payEnable'];
}
if (isset($map['placeholder'])) {
$model->placeholder = $map['placeholder'];
}
if (isset($map['push'])) {
$model->push = push::fromMap($map['push']);
}
if (isset($map['pushToAttendance'])) {
$model->pushToAttendance = $map['pushToAttendance'];
}
if (isset($map['pushToCalendar'])) {
$model->pushToCalendar = $map['pushToCalendar'];
}
if (isset($map['required'])) {
$model->required = $map['required'];
}
if (isset($map['requiredEditableFreeze'])) {
$model->requiredEditableFreeze = $map['requiredEditableFreeze'];
}
if (isset($map['showAttendOptions'])) {
$model->showAttendOptions = $map['showAttendOptions'];
}
if (isset($map['staffStatusEnabled'])) {
$model->staffStatusEnabled = $map['staffStatusEnabled'];
}
if (isset($map['statField'])) {
if (!empty($map['statField'])) {
$model->statField = [];
$n = 0;
foreach ($map['statField'] as $item) {
$model->statField[$n++] = null !== $item ? statField::fromMap($item) : $item;
}
}
}
if (isset($map['tableViewMode'])) {
$model->tableViewMode = $map['tableViewMode'];
}
if (isset($map['unit'])) {
$model->unit = $map['unit'];
}
if (isset($map['useCalendar'])) {
$model->useCalendar = $map['useCalendar'];
}
if (isset($map['verticalPrint'])) {
$model->verticalPrint = $map['verticalPrint'];
}
return $model;
}