<?php

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

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