'CasterId', 'componentId' => 'ComponentId', 'endTime' => 'EndTime', 'episodeId' => 'EpisodeId', 'episodeName' => 'EpisodeName', 'ownerId' => 'OwnerId', 'resourceId' => 'ResourceId', 'startTime' => 'StartTime', 'switchType' => 'SwitchType', ]; public function validate() { } public function toMap() { $res = []; if (null !== $this->casterId) { $res['CasterId'] = $this->casterId; } if (null !== $this->componentId) { $res['ComponentId'] = $this->componentId; } if (null !== $this->endTime) { $res['EndTime'] = $this->endTime; } if (null !== $this->episodeId) { $res['EpisodeId'] = $this->episodeId; } if (null !== $this->episodeName) { $res['EpisodeName'] = $this->episodeName; } if (null !== $this->ownerId) { $res['OwnerId'] = $this->ownerId; } if (null !== $this->resourceId) { $res['ResourceId'] = $this->resourceId; } if (null !== $this->startTime) { $res['StartTime'] = $this->startTime; } if (null !== $this->switchType) { $res['SwitchType'] = $this->switchType; } return $res; } /** * @param array $map * * @return ModifyCasterEpisodeRequest */ public static function fromMap($map = []) { $model = new self(); if (isset($map['CasterId'])) { $model->casterId = $map['CasterId']; } if (isset($map['ComponentId'])) { if (!empty($map['ComponentId'])) { $model->componentId = $map['ComponentId']; } } if (isset($map['EndTime'])) { $model->endTime = $map['EndTime']; } if (isset($map['EpisodeId'])) { $model->episodeId = $map['EpisodeId']; } if (isset($map['EpisodeName'])) { $model->episodeName = $map['EpisodeName']; } if (isset($map['OwnerId'])) { $model->ownerId = $map['OwnerId']; } if (isset($map['ResourceId'])) { $model->resourceId = $map['ResourceId']; } if (isset($map['StartTime'])) { $model->startTime = $map['StartTime']; } if (isset($map['SwitchType'])) { $model->switchType = $map['SwitchType']; } return $model; } }