<?php
/**
 * ReceiptSettingsData
 *
 * PHP version 8.1
 *
 * @category Class
 * @package  Vend202601
 * @author   OpenAPI Generator team
 * @link     https://openapi-generator.tech
 */

/**
 * API 2026-01
 *
 * Lightspeed Retail (X-Series) API.
 *
 * The version of the OpenAPI document: 2026-01
 * Contact: x-series.api@lightspeedhq.com
 * Generated by: https://openapi-generator.tech
 * Generator version: 7.21.0
 */

/**
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

namespace Vend202601\Model;

use \ArrayAccess;
use \Vend202601\ObjectSerializer;

/**
 * ReceiptSettingsData Class Doc Comment
 *
 * @category Class
 * @description Additional boolean display attributes (e.g. DisplayCustomerCode, DisplayProductName, DisplayCustomerDetails, etc.) may appear as extra fields sourced from the displayAttributes map stored per receipt template.
 * @package  Vend202601
 * @author   OpenAPI Generator team
 * @link     https://openapi-generator.tech
 * @implements \ArrayAccess<string, mixed>
 */
class ReceiptSettingsData implements ModelInterface, ArrayAccess, \JsonSerializable
{
    public const DISCRIMINATOR = null;

    /**
     * The original name of the model.
     *
     * @var string
     */
    protected static $openAPIModelName = 'ReceiptSettingsData';

    /**
     * Array of property to type mappings. Used for (de)serialization
     *
     * @var string[]
     */
    protected static $openAPITypes = [
        'display_line_discount' => 'bool',
        'display_loyalty_earned' => 'bool',
        'display_loyalty_link' => 'bool',
        'display_served_by' => 'bool',
        'display_tax' => 'bool',
        'email_subject' => 'string',
        'footer' => 'string',
        'header' => 'string',
        'label_change' => 'string',
        'label_invoice_title' => 'string',
        'label_line_discount' => 'string',
        'label_loyalty' => 'string',
        'label_loyalty_earned' => 'string',
        'label_loyalty_link' => 'string',
        'label_loyalty_total' => 'string',
        'label_served_by' => 'string',
        'label_sub_total' => 'string',
        'label_tax' => 'string',
        'label_tip_amount' => 'string',
        'label_to_pay' => 'string',
        'label_total' => 'string',
        'logo_url' => 'string'
    ];

    /**
     * Array of property to format mappings. Used for (de)serialization
     *
     * @var string[]
     * @phpstan-var array<string, string|null>
     * @psalm-var array<string, string|null>
     */
    protected static $openAPIFormats = [
        'display_line_discount' => null,
        'display_loyalty_earned' => null,
        'display_loyalty_link' => null,
        'display_served_by' => null,
        'display_tax' => null,
        'email_subject' => null,
        'footer' => null,
        'header' => null,
        'label_change' => null,
        'label_invoice_title' => null,
        'label_line_discount' => null,
        'label_loyalty' => null,
        'label_loyalty_earned' => null,
        'label_loyalty_link' => null,
        'label_loyalty_total' => null,
        'label_served_by' => null,
        'label_sub_total' => null,
        'label_tax' => null,
        'label_tip_amount' => null,
        'label_to_pay' => null,
        'label_total' => null,
        'logo_url' => null
    ];

    /**
     * Array of nullable properties. Used for (de)serialization
     *
     * @var boolean[]
     */
    protected static array $openAPINullables = [
        'display_line_discount' => false,
        'display_loyalty_earned' => false,
        'display_loyalty_link' => false,
        'display_served_by' => false,
        'display_tax' => false,
        'email_subject' => false,
        'footer' => false,
        'header' => false,
        'label_change' => false,
        'label_invoice_title' => false,
        'label_line_discount' => false,
        'label_loyalty' => false,
        'label_loyalty_earned' => false,
        'label_loyalty_link' => false,
        'label_loyalty_total' => false,
        'label_served_by' => false,
        'label_sub_total' => false,
        'label_tax' => false,
        'label_tip_amount' => false,
        'label_to_pay' => false,
        'label_total' => false,
        'logo_url' => false
    ];

    /**
     * If a nullable field gets set to null, insert it here
     *
     * @var boolean[]
     */
    protected array $openAPINullablesSetToNull = [];

    /**
     * Array of property to type mappings. Used for (de)serialization
     *
     * @return array
     */
    public static function openAPITypes()
    {
        return self::$openAPITypes;
    }

    /**
     * Array of property to format mappings. Used for (de)serialization
     *
     * @return array
     */
    public static function openAPIFormats()
    {
        return self::$openAPIFormats;
    }

    /**
     * Array of nullable properties
     *
     * @return array
     */
    protected static function openAPINullables(): array
    {
        return self::$openAPINullables;
    }

    /**
     * Array of nullable field names deliberately set to null
     *
     * @return boolean[]
     */
    private function getOpenAPINullablesSetToNull(): array
    {
        return $this->openAPINullablesSetToNull;
    }

    /**
     * Setter - Array of nullable field names deliberately set to null
     *
     * @param boolean[] $openAPINullablesSetToNull
     */
    private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void
    {
        $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;
    }

    /**
     * Checks if a property is nullable
     *
     * @param string $property
     * @return bool
     */
    public static function isNullable(string $property): bool
    {
        return self::openAPINullables()[$property] ?? false;
    }

    /**
     * Checks if a nullable property is set to null.
     *
     * @param string $property
     * @return bool
     */
    public function isNullableSetToNull(string $property): bool
    {
        return in_array($property, $this->getOpenAPINullablesSetToNull(), true);
    }

    /**
     * Array of attributes where the key is the local name,
     * and the value is the original name
     *
     * @var string[]
     */
    protected static $attributeMap = [
        'display_line_discount' => 'DisplayLineDiscount',
        'display_loyalty_earned' => 'DisplayLoyaltyEarned',
        'display_loyalty_link' => 'DisplayLoyaltyLink',
        'display_served_by' => 'DisplayServedBy',
        'display_tax' => 'DisplayTax',
        'email_subject' => 'EmailSubject',
        'footer' => 'Footer',
        'header' => 'Header',
        'label_change' => 'LabelChange',
        'label_invoice_title' => 'LabelInvoiceTitle',
        'label_line_discount' => 'LabelLineDiscount',
        'label_loyalty' => 'LabelLoyalty',
        'label_loyalty_earned' => 'LabelLoyaltyEarned',
        'label_loyalty_link' => 'LabelLoyaltyLink',
        'label_loyalty_total' => 'LabelLoyaltyTotal',
        'label_served_by' => 'LabelServedBy',
        'label_sub_total' => 'LabelSubTotal',
        'label_tax' => 'LabelTax',
        'label_tip_amount' => 'LabelTipAmount',
        'label_to_pay' => 'LabelToPay',
        'label_total' => 'LabelTotal',
        'logo_url' => 'LogoURL'
    ];

    /**
     * Array of attributes to setter functions (for deserialization of responses)
     *
     * @var string[]
     */
    protected static $setters = [
        'display_line_discount' => 'setDisplayLineDiscount',
        'display_loyalty_earned' => 'setDisplayLoyaltyEarned',
        'display_loyalty_link' => 'setDisplayLoyaltyLink',
        'display_served_by' => 'setDisplayServedBy',
        'display_tax' => 'setDisplayTax',
        'email_subject' => 'setEmailSubject',
        'footer' => 'setFooter',
        'header' => 'setHeader',
        'label_change' => 'setLabelChange',
        'label_invoice_title' => 'setLabelInvoiceTitle',
        'label_line_discount' => 'setLabelLineDiscount',
        'label_loyalty' => 'setLabelLoyalty',
        'label_loyalty_earned' => 'setLabelLoyaltyEarned',
        'label_loyalty_link' => 'setLabelLoyaltyLink',
        'label_loyalty_total' => 'setLabelLoyaltyTotal',
        'label_served_by' => 'setLabelServedBy',
        'label_sub_total' => 'setLabelSubTotal',
        'label_tax' => 'setLabelTax',
        'label_tip_amount' => 'setLabelTipAmount',
        'label_to_pay' => 'setLabelToPay',
        'label_total' => 'setLabelTotal',
        'logo_url' => 'setLogoUrl'
    ];

    /**
     * Array of attributes to getter functions (for serialization of requests)
     *
     * @var string[]
     */
    protected static $getters = [
        'display_line_discount' => 'getDisplayLineDiscount',
        'display_loyalty_earned' => 'getDisplayLoyaltyEarned',
        'display_loyalty_link' => 'getDisplayLoyaltyLink',
        'display_served_by' => 'getDisplayServedBy',
        'display_tax' => 'getDisplayTax',
        'email_subject' => 'getEmailSubject',
        'footer' => 'getFooter',
        'header' => 'getHeader',
        'label_change' => 'getLabelChange',
        'label_invoice_title' => 'getLabelInvoiceTitle',
        'label_line_discount' => 'getLabelLineDiscount',
        'label_loyalty' => 'getLabelLoyalty',
        'label_loyalty_earned' => 'getLabelLoyaltyEarned',
        'label_loyalty_link' => 'getLabelLoyaltyLink',
        'label_loyalty_total' => 'getLabelLoyaltyTotal',
        'label_served_by' => 'getLabelServedBy',
        'label_sub_total' => 'getLabelSubTotal',
        'label_tax' => 'getLabelTax',
        'label_tip_amount' => 'getLabelTipAmount',
        'label_to_pay' => 'getLabelToPay',
        'label_total' => 'getLabelTotal',
        'logo_url' => 'getLogoUrl'
    ];

    /**
     * Array of attributes where the key is the local name,
     * and the value is the original name
     *
     * @return array
     */
    public static function attributeMap()
    {
        return self::$attributeMap;
    }

    /**
     * Array of attributes to setter functions (for deserialization of responses)
     *
     * @return array
     */
    public static function setters()
    {
        return self::$setters;
    }

    /**
     * Array of attributes to getter functions (for serialization of requests)
     *
     * @return array
     */
    public static function getters()
    {
        return self::$getters;
    }

    /**
     * The original name of the model.
     *
     * @return string
     */
    public function getModelName()
    {
        return self::$openAPIModelName;
    }


    /**
     * Associative array for storing property values
     *
     * @var mixed[]
     */
    protected $container = [];

    /**
     * Constructor
     *
     * @param mixed[]|null $data Associated array of property values
     *                      initializing the model
     */
    public function __construct(?array $data = null)
    {
        $this->setIfExists('display_line_discount', $data ?? [], true);
        $this->setIfExists('display_loyalty_earned', $data ?? [], true);
        $this->setIfExists('display_loyalty_link', $data ?? [], true);
        $this->setIfExists('display_served_by', $data ?? [], true);
        $this->setIfExists('display_tax', $data ?? [], true);
        $this->setIfExists('email_subject', $data ?? [], null);
        $this->setIfExists('footer', $data ?? [], null);
        $this->setIfExists('header', $data ?? [], null);
        $this->setIfExists('label_change', $data ?? [], 'Change');
        $this->setIfExists('label_invoice_title', $data ?? [], 'Receipt / Tax Invoice');
        $this->setIfExists('label_line_discount', $data ?? [], 'Less discount ');
        $this->setIfExists('label_loyalty', $data ?? [], null);
        $this->setIfExists('label_loyalty_earned', $data ?? [], 'Loyalty earned');
        $this->setIfExists('label_loyalty_link', $data ?? [], null);
        $this->setIfExists('label_loyalty_total', $data ?? [], 'Loyalty');
        $this->setIfExists('label_served_by', $data ?? [], 'Served by:');
        $this->setIfExists('label_sub_total', $data ?? [], 'Subtotal');
        $this->setIfExists('label_tax', $data ?? [], 'Total Tax');
        $this->setIfExists('label_tip_amount', $data ?? [], 'Tip');
        $this->setIfExists('label_to_pay', $data ?? [], 'TO PAY');
        $this->setIfExists('label_total', $data ?? [], 'TOTAL');
        $this->setIfExists('logo_url', $data ?? [], null);
    }

    /**
     * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName
     * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the
     * $this->openAPINullablesSetToNull array
     *
     * @param string $variableName
     * @param array  $fields
     * @param mixed  $defaultValue
     */
    private function setIfExists(string $variableName, array $fields, $defaultValue): void
    {
        if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) {
            $this->openAPINullablesSetToNull[] = $variableName;
        }

        $this->container[$variableName] = $fields[$variableName] ?? $defaultValue;
    }

    /**
     * Show all the invalid properties with reasons.
     *
     * @return array invalid properties with reasons
     */
    public function listInvalidProperties()
    {
        $invalidProperties = [];

        return $invalidProperties;
    }

    /**
     * Validate all the properties in the model
     * return true if all passed
     *
     * @return bool True if all properties are valid
     */
    public function valid()
    {
        return count($this->listInvalidProperties()) === 0;
    }


    /**
     * Gets display_line_discount
     *
     * @return bool|null
     */
    public function getDisplayLineDiscount()
    {
        return $this->container['display_line_discount'];
    }

    /**
     * Sets display_line_discount
     *
     * @param bool|null $display_line_discount display_line_discount
     *
     * @return self
     */
    public function setDisplayLineDiscount($display_line_discount)
    {
        if (is_null($display_line_discount)) {
            throw new \InvalidArgumentException('non-nullable display_line_discount cannot be null');
        }
        $this->container['display_line_discount'] = $display_line_discount;

        return $this;
    }

    /**
     * Gets display_loyalty_earned
     *
     * @return bool|null
     */
    public function getDisplayLoyaltyEarned()
    {
        return $this->container['display_loyalty_earned'];
    }

    /**
     * Sets display_loyalty_earned
     *
     * @param bool|null $display_loyalty_earned Only present when loyalty is enabled
     *
     * @return self
     */
    public function setDisplayLoyaltyEarned($display_loyalty_earned)
    {
        if (is_null($display_loyalty_earned)) {
            throw new \InvalidArgumentException('non-nullable display_loyalty_earned cannot be null');
        }
        $this->container['display_loyalty_earned'] = $display_loyalty_earned;

        return $this;
    }

    /**
     * Gets display_loyalty_link
     *
     * @return bool|null
     */
    public function getDisplayLoyaltyLink()
    {
        return $this->container['display_loyalty_link'];
    }

    /**
     * Sets display_loyalty_link
     *
     * @param bool|null $display_loyalty_link Only present when loyalty is enabled
     *
     * @return self
     */
    public function setDisplayLoyaltyLink($display_loyalty_link)
    {
        if (is_null($display_loyalty_link)) {
            throw new \InvalidArgumentException('non-nullable display_loyalty_link cannot be null');
        }
        $this->container['display_loyalty_link'] = $display_loyalty_link;

        return $this;
    }

    /**
     * Gets display_served_by
     *
     * @return bool|null
     */
    public function getDisplayServedBy()
    {
        return $this->container['display_served_by'];
    }

    /**
     * Sets display_served_by
     *
     * @param bool|null $display_served_by display_served_by
     *
     * @return self
     */
    public function setDisplayServedBy($display_served_by)
    {
        if (is_null($display_served_by)) {
            throw new \InvalidArgumentException('non-nullable display_served_by cannot be null');
        }
        $this->container['display_served_by'] = $display_served_by;

        return $this;
    }

    /**
     * Gets display_tax
     *
     * @return bool|null
     */
    public function getDisplayTax()
    {
        return $this->container['display_tax'];
    }

    /**
     * Sets display_tax
     *
     * @param bool|null $display_tax display_tax
     *
     * @return self
     */
    public function setDisplayTax($display_tax)
    {
        if (is_null($display_tax)) {
            throw new \InvalidArgumentException('non-nullable display_tax cannot be null');
        }
        $this->container['display_tax'] = $display_tax;

        return $this;
    }

    /**
     * Gets email_subject
     *
     * @return string|null
     */
    public function getEmailSubject()
    {
        return $this->container['email_subject'];
    }

    /**
     * Sets email_subject
     *
     * @param string|null $email_subject email_subject
     *
     * @return self
     */
    public function setEmailSubject($email_subject)
    {
        if (is_null($email_subject)) {
            throw new \InvalidArgumentException('non-nullable email_subject cannot be null');
        }
        $this->container['email_subject'] = $email_subject;

        return $this;
    }

    /**
     * Gets footer
     *
     * @return string|null
     */
    public function getFooter()
    {
        return $this->container['footer'];
    }

    /**
     * Sets footer
     *
     * @param string|null $footer footer
     *
     * @return self
     */
    public function setFooter($footer)
    {
        if (is_null($footer)) {
            throw new \InvalidArgumentException('non-nullable footer cannot be null');
        }
        $this->container['footer'] = $footer;

        return $this;
    }

    /**
     * Gets header
     *
     * @return string|null
     */
    public function getHeader()
    {
        return $this->container['header'];
    }

    /**
     * Sets header
     *
     * @param string|null $header header
     *
     * @return self
     */
    public function setHeader($header)
    {
        if (is_null($header)) {
            throw new \InvalidArgumentException('non-nullable header cannot be null');
        }
        $this->container['header'] = $header;

        return $this;
    }

    /**
     * Gets label_change
     *
     * @return string|null
     */
    public function getLabelChange()
    {
        return $this->container['label_change'];
    }

    /**
     * Sets label_change
     *
     * @param string|null $label_change label_change
     *
     * @return self
     */
    public function setLabelChange($label_change)
    {
        if (is_null($label_change)) {
            throw new \InvalidArgumentException('non-nullable label_change cannot be null');
        }
        $this->container['label_change'] = $label_change;

        return $this;
    }

    /**
     * Gets label_invoice_title
     *
     * @return string|null
     */
    public function getLabelInvoiceTitle()
    {
        return $this->container['label_invoice_title'];
    }

    /**
     * Sets label_invoice_title
     *
     * @param string|null $label_invoice_title label_invoice_title
     *
     * @return self
     */
    public function setLabelInvoiceTitle($label_invoice_title)
    {
        if (is_null($label_invoice_title)) {
            throw new \InvalidArgumentException('non-nullable label_invoice_title cannot be null');
        }
        $this->container['label_invoice_title'] = $label_invoice_title;

        return $this;
    }

    /**
     * Gets label_line_discount
     *
     * @return string|null
     */
    public function getLabelLineDiscount()
    {
        return $this->container['label_line_discount'];
    }

    /**
     * Sets label_line_discount
     *
     * @param string|null $label_line_discount label_line_discount
     *
     * @return self
     */
    public function setLabelLineDiscount($label_line_discount)
    {
        if (is_null($label_line_discount)) {
            throw new \InvalidArgumentException('non-nullable label_line_discount cannot be null');
        }
        $this->container['label_line_discount'] = $label_line_discount;

        return $this;
    }

    /**
     * Gets label_loyalty
     *
     * @return string|null
     */
    public function getLabelLoyalty()
    {
        return $this->container['label_loyalty'];
    }

    /**
     * Sets label_loyalty
     *
     * @param string|null $label_loyalty Only present when loyalty is enabled
     *
     * @return self
     */
    public function setLabelLoyalty($label_loyalty)
    {
        if (is_null($label_loyalty)) {
            throw new \InvalidArgumentException('non-nullable label_loyalty cannot be null');
        }
        $this->container['label_loyalty'] = $label_loyalty;

        return $this;
    }

    /**
     * Gets label_loyalty_earned
     *
     * @return string|null
     */
    public function getLabelLoyaltyEarned()
    {
        return $this->container['label_loyalty_earned'];
    }

    /**
     * Sets label_loyalty_earned
     *
     * @param string|null $label_loyalty_earned Only present when loyalty is enabled
     *
     * @return self
     */
    public function setLabelLoyaltyEarned($label_loyalty_earned)
    {
        if (is_null($label_loyalty_earned)) {
            throw new \InvalidArgumentException('non-nullable label_loyalty_earned cannot be null');
        }
        $this->container['label_loyalty_earned'] = $label_loyalty_earned;

        return $this;
    }

    /**
     * Gets label_loyalty_link
     *
     * @return string|null
     */
    public function getLabelLoyaltyLink()
    {
        return $this->container['label_loyalty_link'];
    }

    /**
     * Sets label_loyalty_link
     *
     * @param string|null $label_loyalty_link Only present when loyalty is enabled. Value includes retailer name.
     *
     * @return self
     */
    public function setLabelLoyaltyLink($label_loyalty_link)
    {
        if (is_null($label_loyalty_link)) {
            throw new \InvalidArgumentException('non-nullable label_loyalty_link cannot be null');
        }
        $this->container['label_loyalty_link'] = $label_loyalty_link;

        return $this;
    }

    /**
     * Gets label_loyalty_total
     *
     * @return string|null
     */
    public function getLabelLoyaltyTotal()
    {
        return $this->container['label_loyalty_total'];
    }

    /**
     * Sets label_loyalty_total
     *
     * @param string|null $label_loyalty_total Only present when loyalty is enabled
     *
     * @return self
     */
    public function setLabelLoyaltyTotal($label_loyalty_total)
    {
        if (is_null($label_loyalty_total)) {
            throw new \InvalidArgumentException('non-nullable label_loyalty_total cannot be null');
        }
        $this->container['label_loyalty_total'] = $label_loyalty_total;

        return $this;
    }

    /**
     * Gets label_served_by
     *
     * @return string|null
     */
    public function getLabelServedBy()
    {
        return $this->container['label_served_by'];
    }

    /**
     * Sets label_served_by
     *
     * @param string|null $label_served_by label_served_by
     *
     * @return self
     */
    public function setLabelServedBy($label_served_by)
    {
        if (is_null($label_served_by)) {
            throw new \InvalidArgumentException('non-nullable label_served_by cannot be null');
        }
        $this->container['label_served_by'] = $label_served_by;

        return $this;
    }

    /**
     * Gets label_sub_total
     *
     * @return string|null
     */
    public function getLabelSubTotal()
    {
        return $this->container['label_sub_total'];
    }

    /**
     * Sets label_sub_total
     *
     * @param string|null $label_sub_total label_sub_total
     *
     * @return self
     */
    public function setLabelSubTotal($label_sub_total)
    {
        if (is_null($label_sub_total)) {
            throw new \InvalidArgumentException('non-nullable label_sub_total cannot be null');
        }
        $this->container['label_sub_total'] = $label_sub_total;

        return $this;
    }

    /**
     * Gets label_tax
     *
     * @return string|null
     */
    public function getLabelTax()
    {
        return $this->container['label_tax'];
    }

    /**
     * Sets label_tax
     *
     * @param string|null $label_tax label_tax
     *
     * @return self
     */
    public function setLabelTax($label_tax)
    {
        if (is_null($label_tax)) {
            throw new \InvalidArgumentException('non-nullable label_tax cannot be null');
        }
        $this->container['label_tax'] = $label_tax;

        return $this;
    }

    /**
     * Gets label_tip_amount
     *
     * @return string|null
     */
    public function getLabelTipAmount()
    {
        return $this->container['label_tip_amount'];
    }

    /**
     * Sets label_tip_amount
     *
     * @param string|null $label_tip_amount label_tip_amount
     *
     * @return self
     */
    public function setLabelTipAmount($label_tip_amount)
    {
        if (is_null($label_tip_amount)) {
            throw new \InvalidArgumentException('non-nullable label_tip_amount cannot be null');
        }
        $this->container['label_tip_amount'] = $label_tip_amount;

        return $this;
    }

    /**
     * Gets label_to_pay
     *
     * @return string|null
     */
    public function getLabelToPay()
    {
        return $this->container['label_to_pay'];
    }

    /**
     * Sets label_to_pay
     *
     * @param string|null $label_to_pay label_to_pay
     *
     * @return self
     */
    public function setLabelToPay($label_to_pay)
    {
        if (is_null($label_to_pay)) {
            throw new \InvalidArgumentException('non-nullable label_to_pay cannot be null');
        }
        $this->container['label_to_pay'] = $label_to_pay;

        return $this;
    }

    /**
     * Gets label_total
     *
     * @return string|null
     */
    public function getLabelTotal()
    {
        return $this->container['label_total'];
    }

    /**
     * Sets label_total
     *
     * @param string|null $label_total label_total
     *
     * @return self
     */
    public function setLabelTotal($label_total)
    {
        if (is_null($label_total)) {
            throw new \InvalidArgumentException('non-nullable label_total cannot be null');
        }
        $this->container['label_total'] = $label_total;

        return $this;
    }

    /**
     * Gets logo_url
     *
     * @return string|null
     */
    public function getLogoUrl()
    {
        return $this->container['logo_url'];
    }

    /**
     * Sets logo_url
     *
     * @param string|null $logo_url logo_url
     *
     * @return self
     */
    public function setLogoUrl($logo_url)
    {
        if (is_null($logo_url)) {
            throw new \InvalidArgumentException('non-nullable logo_url cannot be null');
        }
        $this->container['logo_url'] = $logo_url;

        return $this;
    }
    /**
     * Returns true if offset exists. False otherwise.
     *
     * @param integer|string $offset Offset
     *
     * @return boolean
     */
    public function offsetExists(mixed $offset): bool
    {
        return isset($this->container[$offset]);
    }

    /**
     * Gets offset.
     *
     * @param integer|string $offset Offset
     *
     * @return mixed|null
     */
    #[\ReturnTypeWillChange]
    public function offsetGet(mixed $offset)
    {
        return $this->container[$offset] ?? null;
    }

    /**
     * Sets value based on offset.
     *
     * @param int|null $offset Offset
     * @param mixed    $value  Value to be set
     *
     * @return void
     */
    public function offsetSet($offset, $value): void
    {
        if (is_null($offset)) {
            $this->container[] = $value;
        } else {
            $this->container[$offset] = $value;
        }
    }

    /**
     * Unsets offset.
     *
     * @param integer|string $offset Offset
     *
     * @return void
     */
    public function offsetUnset(mixed $offset): void
    {
        unset($this->container[$offset]);
    }

    /**
     * Serializes the object to a value that can be serialized natively by json_encode().
     * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
     *
     * @return mixed Returns data which can be serialized by json_encode(), which is a value
     * of any type other than a resource.
     */
    #[\ReturnTypeWillChange]
    public function jsonSerialize()
    {
       return ObjectSerializer::sanitizeForSerialization($this);
    }

    /**
     * Gets the string presentation of the object
     *
     * @return string
     */
    public function __toString()
    {
        return json_encode(
            ObjectSerializer::sanitizeForSerialization($this),
            JSON_PRETTY_PRINT
        );
    }

    /**
     * Gets a header-safe presentation of the object
     *
     * @return string
     */
    public function toHeaderValue()
    {
        return json_encode(ObjectSerializer::sanitizeForSerialization($this));
    }
}


