'CaptionLayerContent', 'casterId' => 'CasterId', 'componentLayer' => 'ComponentLayer', 'componentName' => 'ComponentName', 'componentType' => 'ComponentType', 'effect' => 'Effect', 'htmlLayerContent' => 'HtmlLayerContent', 'imageLayerContent' => 'ImageLayerContent', 'layerOrder' => 'LayerOrder', 'locationId' => 'LocationId', 'ownerId' => 'OwnerId', 'textLayerContent' => 'TextLayerContent', ]; public function validate() { } public function toMap() { $res = []; if (null !== $this->captionLayerContent) { $res['CaptionLayerContent'] = $this->captionLayerContent; } if (null !== $this->casterId) { $res['CasterId'] = $this->casterId; } if (null !== $this->componentLayer) { $res['ComponentLayer'] = $this->componentLayer; } if (null !== $this->componentName) { $res['ComponentName'] = $this->componentName; } if (null !== $this->componentType) { $res['ComponentType'] = $this->componentType; } if (null !== $this->effect) { $res['Effect'] = $this->effect; } if (null !== $this->htmlLayerContent) { $res['HtmlLayerContent'] = $this->htmlLayerContent; } if (null !== $this->imageLayerContent) { $res['ImageLayerContent'] = $this->imageLayerContent; } if (null !== $this->layerOrder) { $res['LayerOrder'] = $this->layerOrder; } if (null !== $this->locationId) { $res['LocationId'] = $this->locationId; } if (null !== $this->ownerId) { $res['OwnerId'] = $this->ownerId; } if (null !== $this->textLayerContent) { $res['TextLayerContent'] = $this->textLayerContent; } return $res; } /** * @param array $map * * @return AddCasterComponentRequest */ public static function fromMap($map = []) { $model = new self(); if (isset($map['CaptionLayerContent'])) { $model->captionLayerContent = $map['CaptionLayerContent']; } if (isset($map['CasterId'])) { $model->casterId = $map['CasterId']; } if (isset($map['ComponentLayer'])) { $model->componentLayer = $map['ComponentLayer']; } if (isset($map['ComponentName'])) { $model->componentName = $map['ComponentName']; } if (isset($map['ComponentType'])) { $model->componentType = $map['ComponentType']; } if (isset($map['Effect'])) { $model->effect = $map['Effect']; } if (isset($map['HtmlLayerContent'])) { $model->htmlLayerContent = $map['HtmlLayerContent']; } if (isset($map['ImageLayerContent'])) { $model->imageLayerContent = $map['ImageLayerContent']; } if (isset($map['LayerOrder'])) { $model->layerOrder = $map['LayerOrder']; } if (isset($map['LocationId'])) { $model->locationId = $map['LocationId']; } if (isset($map['OwnerId'])) { $model->ownerId = $map['OwnerId']; } if (isset($map['TextLayerContent'])) { $model->textLayerContent = $map['TextLayerContent']; } return $model; } }