'OwnerId', 'appId' => 'AppId', 'roomId' => 'RoomId', 'anchorId' => 'AnchorId', 'templateIds' => 'TemplateIds', 'useAppTranscode' => 'UseAppTranscode', ]; public function validate() { } public function toMap() { $res = []; if (null !== $this->ownerId) { $res['OwnerId'] = $this->ownerId; } if (null !== $this->appId) { $res['AppId'] = $this->appId; } if (null !== $this->roomId) { $res['RoomId'] = $this->roomId; } if (null !== $this->anchorId) { $res['AnchorId'] = $this->anchorId; } if (null !== $this->templateIds) { $res['TemplateIds'] = $this->templateIds; } if (null !== $this->useAppTranscode) { $res['UseAppTranscode'] = $this->useAppTranscode; } return $res; } /** * @param array $map * * @return CreateRoomRequest */ public static function fromMap($map = []) { $model = new self(); if (isset($map['OwnerId'])) { $model->ownerId = $map['OwnerId']; } if (isset($map['AppId'])) { $model->appId = $map['AppId']; } if (isset($map['RoomId'])) { $model->roomId = $map['RoomId']; } if (isset($map['AnchorId'])) { $model->anchorId = $map['AnchorId']; } if (isset($map['TemplateIds'])) { $model->templateIds = $map['TemplateIds']; } if (isset($map['UseAppTranscode'])) { $model->useAppTranscode = $map['UseAppTranscode']; } return $model; } }