'AppName', 'domainName' => 'DomainName', 'liveStreamType' => 'LiveStreamType', 'oneshot' => 'Oneshot', 'ownerId' => 'OwnerId', 'resumeTime' => 'ResumeTime', 'streamName' => 'StreamName', ]; public function validate() { } public function toMap() { $res = []; if (null !== $this->appName) { $res['AppName'] = $this->appName; } if (null !== $this->domainName) { $res['DomainName'] = $this->domainName; } if (null !== $this->liveStreamType) { $res['LiveStreamType'] = $this->liveStreamType; } if (null !== $this->oneshot) { $res['Oneshot'] = $this->oneshot; } if (null !== $this->ownerId) { $res['OwnerId'] = $this->ownerId; } if (null !== $this->resumeTime) { $res['ResumeTime'] = $this->resumeTime; } if (null !== $this->streamName) { $res['StreamName'] = $this->streamName; } return $res; } /** * @param array $map * * @return ForbidLiveStreamRequest */ public static function fromMap($map = []) { $model = new self(); if (isset($map['AppName'])) { $model->appName = $map['AppName']; } if (isset($map['DomainName'])) { $model->domainName = $map['DomainName']; } if (isset($map['LiveStreamType'])) { $model->liveStreamType = $map['LiveStreamType']; } if (isset($map['Oneshot'])) { $model->oneshot = $map['Oneshot']; } if (isset($map['OwnerId'])) { $model->ownerId = $map['OwnerId']; } if (isset($map['ResumeTime'])) { $model->resumeTime = $map['ResumeTime']; } if (isset($map['StreamName'])) { $model->streamName = $map['StreamName']; } return $model; } }