in dingtalk/php/src/edu_1_0/Models/QueryCollegeContactUserDetailResponseBody/result.php [295:444]
public function toMap()
{
$res = [];
if (null !== $this->active) {
$res['active'] = $this->active;
}
if (null !== $this->admin) {
$res['admin'] = $this->admin;
}
if (null !== $this->avatar) {
$res['avatar'] = $this->avatar;
}
if (null !== $this->boss) {
$res['boss'] = $this->boss;
}
if (null !== $this->deptIdList) {
$res['deptIdList'] = $this->deptIdList;
}
if (null !== $this->deptOrderList) {
$res['deptOrderList'] = [];
if (null !== $this->deptOrderList && \is_array($this->deptOrderList)) {
$n = 0;
foreach ($this->deptOrderList as $item) {
$res['deptOrderList'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
if (null !== $this->deptPositionSet) {
$res['deptPositionSet'] = [];
if (null !== $this->deptPositionSet && \is_array($this->deptPositionSet)) {
$n = 0;
foreach ($this->deptPositionSet as $item) {
$res['deptPositionSet'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
if (null !== $this->deptTypeSet) {
$res['deptTypeSet'] = [];
if (null !== $this->deptTypeSet && \is_array($this->deptTypeSet)) {
$n = 0;
foreach ($this->deptTypeSet as $item) {
$res['deptTypeSet'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
if (null !== $this->email) {
$res['email'] = $this->email;
}
if (null !== $this->empType) {
$res['empType'] = $this->empType;
}
if (null !== $this->exclusiveAccount) {
$res['exclusiveAccount'] = $this->exclusiveAccount;
}
if (null !== $this->exclusiveAccountCorpId) {
$res['exclusiveAccountCorpId'] = $this->exclusiveAccountCorpId;
}
if (null !== $this->exclusiveAccountCorpName) {
$res['exclusiveAccountCorpName'] = $this->exclusiveAccountCorpName;
}
if (null !== $this->exclusiveAccountType) {
$res['exclusiveAccountType'] = $this->exclusiveAccountType;
}
if (null !== $this->extension) {
$res['extension'] = $this->extension;
}
if (null !== $this->hideMobile) {
$res['hideMobile'] = $this->hideMobile;
}
if (null !== $this->hiredDate) {
$res['hiredDate'] = $this->hiredDate;
}
if (null !== $this->jobNumber) {
$res['jobNumber'] = $this->jobNumber;
}
if (null !== $this->leaderInDept) {
$res['leaderInDept'] = [];
if (null !== $this->leaderInDept && \is_array($this->leaderInDept)) {
$n = 0;
foreach ($this->leaderInDept as $item) {
$res['leaderInDept'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
if (null !== $this->loginId) {
$res['loginId'] = $this->loginId;
}
if (null !== $this->loginType) {
$res['loginType'] = $this->loginType;
}
if (null !== $this->mainDeptId) {
$res['mainDeptId'] = $this->mainDeptId;
}
if (null !== $this->managerUserid) {
$res['managerUserid'] = $this->managerUserid;
}
if (null !== $this->mobile) {
$res['mobile'] = $this->mobile;
}
if (null !== $this->name) {
$res['name'] = $this->name;
}
if (null !== $this->orgEmail) {
$res['orgEmail'] = $this->orgEmail;
}
if (null !== $this->orgEmailType) {
$res['orgEmailType'] = $this->orgEmailType;
}
if (null !== $this->realAuthed) {
$res['realAuthed'] = $this->realAuthed;
}
if (null !== $this->remark) {
$res['remark'] = $this->remark;
}
if (null !== $this->roleList) {
$res['roleList'] = [];
if (null !== $this->roleList && \is_array($this->roleList)) {
$n = 0;
foreach ($this->roleList as $item) {
$res['roleList'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
if (null !== $this->senior) {
$res['senior'] = $this->senior;
}
if (null !== $this->stateCode) {
$res['stateCode'] = $this->stateCode;
}
if (null !== $this->telephone) {
$res['telephone'] = $this->telephone;
}
if (null !== $this->title) {
$res['title'] = $this->title;
}
if (null !== $this->unionEmpExt) {
$res['unionEmpExt'] = null !== $this->unionEmpExt ? $this->unionEmpExt->toMap() : null;
}
if (null !== $this->unionId) {
$res['unionId'] = $this->unionId;
}
if (null !== $this->userid) {
$res['userid'] = $this->userid;
}
if (null !== $this->workPlace) {
$res['workPlace'] = $this->workPlace;
}
return $res;
}