'CasterId', 'componentId' => 'ComponentId', 'layoutId' => 'LayoutId', 'ownerId' => 'OwnerId', 'sceneId' => 'SceneId', ]; public function validate() { } public function toMap() { $res = []; if (null !== $this->casterId) { $res['CasterId'] = $this->casterId; } if (null !== $this->componentId) { $res['ComponentId'] = $this->componentId; } if (null !== $this->layoutId) { $res['LayoutId'] = $this->layoutId; } if (null !== $this->ownerId) { $res['OwnerId'] = $this->ownerId; } if (null !== $this->sceneId) { $res['SceneId'] = $this->sceneId; } return $res; } /** * @param array $map * * @return UpdateCasterSceneConfigRequest */ public static function fromMap($map = []) { $model = new self(); if (isset($map['CasterId'])) { $model->casterId = $map['CasterId']; } if (isset($map['ComponentId'])) { if (!empty($map['ComponentId'])) { $model->componentId = $map['ComponentId']; } } if (isset($map['LayoutId'])) { $model->layoutId = $map['LayoutId']; } if (isset($map['OwnerId'])) { $model->ownerId = $map['OwnerId']; } if (isset($map['SceneId'])) { $model->sceneId = $map['SceneId']; } return $model; } }