'BeginOffset', 'casterId' => 'CasterId', 'endOffset' => 'EndOffset', 'liveStreamUrl' => 'LiveStreamUrl', 'materialId' => 'MaterialId', 'ownerId' => 'OwnerId', 'ptsCallbackInterval' => 'PtsCallbackInterval', 'repeatNum' => 'RepeatNum', 'resourceId' => 'ResourceId', 'resourceName' => 'ResourceName', 'vodUrl' => 'VodUrl', ]; public function validate() { } public function toMap() { $res = []; if (null !== $this->beginOffset) { $res['BeginOffset'] = $this->beginOffset; } if (null !== $this->casterId) { $res['CasterId'] = $this->casterId; } if (null !== $this->endOffset) { $res['EndOffset'] = $this->endOffset; } if (null !== $this->liveStreamUrl) { $res['LiveStreamUrl'] = $this->liveStreamUrl; } if (null !== $this->materialId) { $res['MaterialId'] = $this->materialId; } if (null !== $this->ownerId) { $res['OwnerId'] = $this->ownerId; } if (null !== $this->ptsCallbackInterval) { $res['PtsCallbackInterval'] = $this->ptsCallbackInterval; } if (null !== $this->repeatNum) { $res['RepeatNum'] = $this->repeatNum; } if (null !== $this->resourceId) { $res['ResourceId'] = $this->resourceId; } if (null !== $this->resourceName) { $res['ResourceName'] = $this->resourceName; } if (null !== $this->vodUrl) { $res['VodUrl'] = $this->vodUrl; } return $res; } /** * @param array $map * * @return ModifyCasterVideoResourceRequest */ public static function fromMap($map = []) { $model = new self(); if (isset($map['BeginOffset'])) { $model->beginOffset = $map['BeginOffset']; } if (isset($map['CasterId'])) { $model->casterId = $map['CasterId']; } if (isset($map['EndOffset'])) { $model->endOffset = $map['EndOffset']; } if (isset($map['LiveStreamUrl'])) { $model->liveStreamUrl = $map['LiveStreamUrl']; } if (isset($map['MaterialId'])) { $model->materialId = $map['MaterialId']; } if (isset($map['OwnerId'])) { $model->ownerId = $map['OwnerId']; } if (isset($map['PtsCallbackInterval'])) { $model->ptsCallbackInterval = $map['PtsCallbackInterval']; } if (isset($map['RepeatNum'])) { $model->repeatNum = $map['RepeatNum']; } if (isset($map['ResourceId'])) { $model->resourceId = $map['ResourceId']; } if (isset($map['ResourceName'])) { $model->resourceName = $map['ResourceName']; } if (isset($map['VodUrl'])) { $model->vodUrl = $map['VodUrl']; } return $model; } }