<?php

/*
 * This file was automatically generated.
 */
namespace Syde\Vendor\Cawl\OnlinePayments\Sdk\Domain;

use UnexpectedValueException;
/**
 * @package OnlinePayments\Sdk\Domain
 */
class GetPrivacyPolicyResponse extends DataObject
{
    /**
     * @var string|null
     */
    public ?string $htmlContent = null;
    /**
     * @return string|null
     */
    public function getHtmlContent() : ?string
    {
        return $this->htmlContent;
    }
    /**
     * @param string|null $value
     */
    public function setHtmlContent(?string $value) : void
    {
        $this->htmlContent = $value;
    }
    /**
     * @return object
     */
    public function toObject() : object
    {
        $object = parent::toObject();
        if (!\is_null($this->htmlContent)) {
            $object->htmlContent = $this->htmlContent;
        }
        return $object;
    }
    /**
     * @param object $object
     * @return $this
     * @throws UnexpectedValueException
     */
    public function fromObject(object $object) : GetPrivacyPolicyResponse
    {
        parent::fromObject($object);
        if (\property_exists($object, 'htmlContent')) {
            $this->htmlContent = $object->htmlContent;
        }
        return $this;
    }
}
