'App', 'description' => 'Description', 'domain' => 'Domain', 'name' => 'Name', 'ownerId' => 'OwnerId', 'stream' => 'Stream', 'templateId' => 'TemplateId', ]; public function validate() { } public function toMap() { $res = []; if (null !== $this->app) { $res['App'] = $this->app; } if (null !== $this->description) { $res['Description'] = $this->description; } if (null !== $this->domain) { $res['Domain'] = $this->domain; } if (null !== $this->name) { $res['Name'] = $this->name; } if (null !== $this->ownerId) { $res['OwnerId'] = $this->ownerId; } if (null !== $this->stream) { $res['Stream'] = $this->stream; } if (null !== $this->templateId) { $res['TemplateId'] = $this->templateId; } return $res; } /** * @param array $map * * @return AddLiveStreamWatermarkRuleRequest */ public static function fromMap($map = []) { $model = new self(); if (isset($map['App'])) { $model->app = $map['App']; } if (isset($map['Description'])) { $model->description = $map['Description']; } if (isset($map['Domain'])) { $model->domain = $map['Domain']; } if (isset($map['Name'])) { $model->name = $map['Name']; } if (isset($map['OwnerId'])) { $model->ownerId = $map['OwnerId']; } if (isset($map['Stream'])) { $model->stream = $map['Stream']; } if (isset($map['TemplateId'])) { $model->templateId = $map['TemplateId']; } return $model; } }