'OwnerId', 'htmlResourceId' => 'HtmlResourceId', 'casterId' => 'CasterId', 'htmlUrl' => 'HtmlUrl', 'htmlContent' => 'htmlContent', 'config' => 'Config', ]; public function validate() { } public function toMap() { $res = []; if (null !== $this->ownerId) { $res['OwnerId'] = $this->ownerId; } if (null !== $this->htmlResourceId) { $res['HtmlResourceId'] = $this->htmlResourceId; } if (null !== $this->casterId) { $res['CasterId'] = $this->casterId; } if (null !== $this->htmlUrl) { $res['HtmlUrl'] = $this->htmlUrl; } if (null !== $this->htmlContent) { $res['htmlContent'] = $this->htmlContent; } if (null !== $this->config) { $res['Config'] = $this->config; } return $res; } /** * @param array $map * * @return EditHtmlResourceRequest */ public static function fromMap($map = []) { $model = new self(); if (isset($map['OwnerId'])) { $model->ownerId = $map['OwnerId']; } if (isset($map['HtmlResourceId'])) { $model->htmlResourceId = $map['HtmlResourceId']; } if (isset($map['CasterId'])) { $model->casterId = $map['CasterId']; } if (isset($map['HtmlUrl'])) { $model->htmlUrl = $map['HtmlUrl']; } if (isset($map['htmlContent'])) { $model->htmlContent = $map['htmlContent']; } if (isset($map['Config'])) { $model->config = $map['Config']; } return $model; } }