in dingtalk/php/src/attendance_1_0/Models/GroupAddRequest.php [361:531]
public function toMap()
{
$res = [];
if (null !== $this->adjustmentSettingId) {
$res['adjustmentSettingId'] = $this->adjustmentSettingId;
}
if (null !== $this->bleDeviceList) {
$res['bleDeviceList'] = [];
if (null !== $this->bleDeviceList && \is_array($this->bleDeviceList)) {
$n = 0;
foreach ($this->bleDeviceList as $item) {
$res['bleDeviceList'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
if (null !== $this->checkNeedHealthyCode) {
$res['checkNeedHealthyCode'] = $this->checkNeedHealthyCode;
}
if (null !== $this->defaultClassId) {
$res['defaultClassId'] = $this->defaultClassId;
}
if (null !== $this->disableCheckWhenRest) {
$res['disableCheckWhenRest'] = $this->disableCheckWhenRest;
}
if (null !== $this->disableCheckWithoutSchedule) {
$res['disableCheckWithoutSchedule'] = $this->disableCheckWithoutSchedule;
}
if (null !== $this->enableCameraCheck) {
$res['enableCameraCheck'] = $this->enableCameraCheck;
}
if (null !== $this->enableEmpSelectClass) {
$res['enableEmpSelectClass'] = $this->enableEmpSelectClass;
}
if (null !== $this->enableFaceCheck) {
$res['enableFaceCheck'] = $this->enableFaceCheck;
}
if (null !== $this->enableFaceStrictMode) {
$res['enableFaceStrictMode'] = $this->enableFaceStrictMode;
}
if (null !== $this->enableNextDay) {
$res['enableNextDay'] = $this->enableNextDay;
}
if (null !== $this->enableOutSideUpdateNormalCheck) {
$res['enableOutSideUpdateNormalCheck'] = $this->enableOutSideUpdateNormalCheck;
}
if (null !== $this->enableOutsideApply) {
$res['enableOutsideApply'] = $this->enableOutsideApply;
}
if (null !== $this->enableOutsideCameraCheck) {
$res['enableOutsideCameraCheck'] = $this->enableOutsideCameraCheck;
}
if (null !== $this->enableOutsideCheck) {
$res['enableOutsideCheck'] = $this->enableOutsideCheck;
}
if (null !== $this->enableOutsideRemark) {
$res['enableOutsideRemark'] = $this->enableOutsideRemark;
}
if (null !== $this->enablePositionBle) {
$res['enablePositionBle'] = $this->enablePositionBle;
}
if (null !== $this->enableTrimDistance) {
$res['enableTrimDistance'] = $this->enableTrimDistance;
}
if (null !== $this->forbidHideOutSideAddress) {
$res['forbidHideOutSideAddress'] = $this->forbidHideOutSideAddress;
}
if (null !== $this->freeCheckSetting) {
$res['freeCheckSetting'] = null !== $this->freeCheckSetting ? $this->freeCheckSetting->toMap() : null;
}
if (null !== $this->freeCheckTypeId) {
$res['freeCheckTypeId'] = $this->freeCheckTypeId;
}
if (null !== $this->freecheckDayStartMinOffset) {
$res['freecheckDayStartMinOffset'] = $this->freecheckDayStartMinOffset;
}
if (null !== $this->freecheckWorkDays) {
$res['freecheckWorkDays'] = $this->freecheckWorkDays;
}
if (null !== $this->groupId) {
$res['groupId'] = $this->groupId;
}
if (null !== $this->groupName) {
$res['groupName'] = $this->groupName;
}
if (null !== $this->managerList) {
$res['managerList'] = $this->managerList;
}
if (null !== $this->members) {
$res['members'] = [];
if (null !== $this->members && \is_array($this->members)) {
$n = 0;
foreach ($this->members as $item) {
$res['members'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
if (null !== $this->modifyMember) {
$res['modifyMember'] = $this->modifyMember;
}
if (null !== $this->offset) {
$res['offset'] = $this->offset;
}
if (null !== $this->onlyMachineCheck) {
$res['onlyMachineCheck'] = $this->onlyMachineCheck;
}
if (null !== $this->openCameraCheck) {
$res['openCameraCheck'] = $this->openCameraCheck;
}
if (null !== $this->openFaceCheck) {
$res['openFaceCheck'] = $this->openFaceCheck;
}
if (null !== $this->outsideCheckApproveModeId) {
$res['outsideCheckApproveModeId'] = $this->outsideCheckApproveModeId;
}
if (null !== $this->overtimeSettingId) {
$res['overtimeSettingId'] = $this->overtimeSettingId;
}
if (null !== $this->owner) {
$res['owner'] = $this->owner;
}
if (null !== $this->positions) {
$res['positions'] = [];
if (null !== $this->positions && \is_array($this->positions)) {
$n = 0;
foreach ($this->positions as $item) {
$res['positions'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
if (null !== $this->resourcePermissionMap) {
$res['resourcePermissionMap'] = $this->resourcePermissionMap;
}
if (null !== $this->shiftVOList) {
$res['shiftVOList'] = [];
if (null !== $this->shiftVOList && \is_array($this->shiftVOList)) {
$n = 0;
foreach ($this->shiftVOList as $item) {
$res['shiftVOList'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
if (null !== $this->skipHolidays) {
$res['skipHolidays'] = $this->skipHolidays;
}
if (null !== $this->specialDays) {
$res['specialDays'] = $this->specialDays;
}
if (null !== $this->trimDistance) {
$res['trimDistance'] = $this->trimDistance;
}
if (null !== $this->type) {
$res['type'] = $this->type;
}
if (null !== $this->wifis) {
$res['wifis'] = [];
if (null !== $this->wifis && \is_array($this->wifis)) {
$n = 0;
foreach ($this->wifis as $item) {
$res['wifis'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
if (null !== $this->workdayClassList) {
$res['workdayClassList'] = $this->workdayClassList;
}
if (null !== $this->opUserId) {
$res['opUserId'] = $this->opUserId;
}
return $res;
}