addType('acceptsDeployId', 'string'); $this->addType('name', 'string'); $this->addType('displayName', 'string'); $this->addType('protocol', 'string'); $this->addType('host', 'string'); $this->addType('deployConfig', 'json'); if (isset($params['id'])) { $this->setId($params['id']); } if (isset($params['accepts_deploy_id'])) { $this->setAcceptsDeployId($params['accepts_deploy_id']); } if (isset($params['name'])) { $this->setName($params['name']); } if (isset($params['display_name'])) { $this->setDisplayName($params['display_name']); } if (isset($params['protocol'])) { $this->setProtocol($params['protocol']); } if (isset($params['host'])) { $this->setHost($params['host']); } if (isset($params['deploy_config'])) { $this->setDeployConfig($params['deploy_config']); } } public function jsonSerialize(): array { return [ 'id' => $this->getId(), 'accepts_deploy_id' => $this->getAcceptsDeployId(), 'name' => $this->getName(), 'display_name' => $this->getDisplayName(), 'protocol' => $this->getProtocol(), 'host' => $this->getHost(), 'deploy_config' => $this->getDeployConfig(), ]; } }