<?php

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

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