<?php
/**
 * BaseSupplierContact
 *
 * 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.20.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;

/**
 * BaseSupplierContact Class Doc Comment
 *
 * @category Class
 * @description Contact information for the supplier.
 * @package  Vend202601
 * @author   OpenAPI Generator team
 * @link     https://openapi-generator.tech
 * @implements \ArrayAccess<string, mixed>
 */
class BaseSupplierContact implements ModelInterface, ArrayAccess, \JsonSerializable
{
    public const DISCRIMINATOR = null;

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

    /**
      * Array of property to type mappings. Used for (de)serialization
      *
      * @var string[]
      */
    protected static $openAPITypes = [
        'company_name' => 'string',
        'email' => 'string',
        'fax' => 'string',
        'first_name' => 'string',
        'last_name' => 'string',
        'mobile' => 'string',
        'phone' => 'string',
        'physical_address1' => 'string',
        'physical_address2' => 'string',
        'physical_city' => 'string',
        'physical_country_id' => 'string',
        'physical_postcode' => 'string',
        'physical_state' => 'string',
        'physical_suburb' => 'string',
        'postal_address1' => 'string',
        'postal_address2' => 'string',
        'postal_city' => 'string',
        'postal_country_id' => 'string',
        'postal_postcode' => 'string',
        'postal_state' => 'string',
        'postal_suburb' => 'string',
        'website' => '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 = [
        'company_name' => null,
        'email' => null,
        'fax' => null,
        'first_name' => null,
        'last_name' => null,
        'mobile' => null,
        'phone' => null,
        'physical_address1' => null,
        'physical_address2' => null,
        'physical_city' => null,
        'physical_country_id' => null,
        'physical_postcode' => null,
        'physical_state' => null,
        'physical_suburb' => null,
        'postal_address1' => null,
        'postal_address2' => null,
        'postal_city' => null,
        'postal_country_id' => null,
        'postal_postcode' => null,
        'postal_state' => null,
        'postal_suburb' => null,
        'website' => null
    ];

    /**
      * Array of nullable properties. Used for (de)serialization
      *
      * @var boolean[]
      */
    protected static array $openAPINullables = [
        'company_name' => false,
        'email' => false,
        'fax' => false,
        'first_name' => false,
        'last_name' => false,
        'mobile' => false,
        'phone' => false,
        'physical_address1' => false,
        'physical_address2' => false,
        'physical_city' => false,
        'physical_country_id' => false,
        'physical_postcode' => false,
        'physical_state' => false,
        'physical_suburb' => false,
        'postal_address1' => false,
        'postal_address2' => false,
        'postal_city' => false,
        'postal_country_id' => false,
        'postal_postcode' => false,
        'postal_state' => false,
        'postal_suburb' => false,
        'website' => 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 = [
        'company_name' => 'company_name',
        'email' => 'email',
        'fax' => 'fax',
        'first_name' => 'first_name',
        'last_name' => 'last_name',
        'mobile' => 'mobile',
        'phone' => 'phone',
        'physical_address1' => 'physical_address1',
        'physical_address2' => 'physical_address2',
        'physical_city' => 'physical_city',
        'physical_country_id' => 'physical_country_id',
        'physical_postcode' => 'physical_postcode',
        'physical_state' => 'physical_state',
        'physical_suburb' => 'physical_suburb',
        'postal_address1' => 'postal_address1',
        'postal_address2' => 'postal_address2',
        'postal_city' => 'postal_city',
        'postal_country_id' => 'postal_country_id',
        'postal_postcode' => 'postal_postcode',
        'postal_state' => 'postal_state',
        'postal_suburb' => 'postal_suburb',
        'website' => 'website'
    ];

    /**
     * Array of attributes to setter functions (for deserialization of responses)
     *
     * @var string[]
     */
    protected static $setters = [
        'company_name' => 'setCompanyName',
        'email' => 'setEmail',
        'fax' => 'setFax',
        'first_name' => 'setFirstName',
        'last_name' => 'setLastName',
        'mobile' => 'setMobile',
        'phone' => 'setPhone',
        'physical_address1' => 'setPhysicalAddress1',
        'physical_address2' => 'setPhysicalAddress2',
        'physical_city' => 'setPhysicalCity',
        'physical_country_id' => 'setPhysicalCountryId',
        'physical_postcode' => 'setPhysicalPostcode',
        'physical_state' => 'setPhysicalState',
        'physical_suburb' => 'setPhysicalSuburb',
        'postal_address1' => 'setPostalAddress1',
        'postal_address2' => 'setPostalAddress2',
        'postal_city' => 'setPostalCity',
        'postal_country_id' => 'setPostalCountryId',
        'postal_postcode' => 'setPostalPostcode',
        'postal_state' => 'setPostalState',
        'postal_suburb' => 'setPostalSuburb',
        'website' => 'setWebsite'
    ];

    /**
     * Array of attributes to getter functions (for serialization of requests)
     *
     * @var string[]
     */
    protected static $getters = [
        'company_name' => 'getCompanyName',
        'email' => 'getEmail',
        'fax' => 'getFax',
        'first_name' => 'getFirstName',
        'last_name' => 'getLastName',
        'mobile' => 'getMobile',
        'phone' => 'getPhone',
        'physical_address1' => 'getPhysicalAddress1',
        'physical_address2' => 'getPhysicalAddress2',
        'physical_city' => 'getPhysicalCity',
        'physical_country_id' => 'getPhysicalCountryId',
        'physical_postcode' => 'getPhysicalPostcode',
        'physical_state' => 'getPhysicalState',
        'physical_suburb' => 'getPhysicalSuburb',
        'postal_address1' => 'getPostalAddress1',
        'postal_address2' => 'getPostalAddress2',
        'postal_city' => 'getPostalCity',
        'postal_country_id' => 'getPostalCountryId',
        'postal_postcode' => 'getPostalPostcode',
        'postal_state' => 'getPostalState',
        'postal_suburb' => 'getPostalSuburb',
        'website' => 'getWebsite'
    ];

    /**
     * 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('company_name', $data ?? [], null);
        $this->setIfExists('email', $data ?? [], null);
        $this->setIfExists('fax', $data ?? [], null);
        $this->setIfExists('first_name', $data ?? [], null);
        $this->setIfExists('last_name', $data ?? [], null);
        $this->setIfExists('mobile', $data ?? [], null);
        $this->setIfExists('phone', $data ?? [], null);
        $this->setIfExists('physical_address1', $data ?? [], null);
        $this->setIfExists('physical_address2', $data ?? [], null);
        $this->setIfExists('physical_city', $data ?? [], null);
        $this->setIfExists('physical_country_id', $data ?? [], null);
        $this->setIfExists('physical_postcode', $data ?? [], null);
        $this->setIfExists('physical_state', $data ?? [], null);
        $this->setIfExists('physical_suburb', $data ?? [], null);
        $this->setIfExists('postal_address1', $data ?? [], null);
        $this->setIfExists('postal_address2', $data ?? [], null);
        $this->setIfExists('postal_city', $data ?? [], null);
        $this->setIfExists('postal_country_id', $data ?? [], null);
        $this->setIfExists('postal_postcode', $data ?? [], null);
        $this->setIfExists('postal_state', $data ?? [], null);
        $this->setIfExists('postal_suburb', $data ?? [], null);
        $this->setIfExists('website', $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 company_name
     *
     * @return string|null
     */
    public function getCompanyName()
    {
        return $this->container['company_name'];
    }

    /**
     * Sets company_name
     *
     * @param string|null $company_name The name of the supplier company. This field is defaulted to the supplier name if not provided.
     *
     * @return self
     */
    public function setCompanyName($company_name)
    {
        if (is_null($company_name)) {
            throw new \InvalidArgumentException('non-nullable company_name cannot be null');
        }
        $this->container['company_name'] = $company_name;

        return $this;
    }

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

    /**
     * Sets email
     *
     * @param string|null $email The contact email of the supplier.
     *
     * @return self
     */
    public function setEmail($email)
    {
        if (is_null($email)) {
            throw new \InvalidArgumentException('non-nullable email cannot be null');
        }
        $this->container['email'] = $email;

        return $this;
    }

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

    /**
     * Sets fax
     *
     * @param string|null $fax Fax number of the supplier.
     *
     * @return self
     */
    public function setFax($fax)
    {
        if (is_null($fax)) {
            throw new \InvalidArgumentException('non-nullable fax cannot be null');
        }
        $this->container['fax'] = $fax;

        return $this;
    }

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

    /**
     * Sets first_name
     *
     * @param string|null $first_name The firstname of the contact person.
     *
     * @return self
     */
    public function setFirstName($first_name)
    {
        if (is_null($first_name)) {
            throw new \InvalidArgumentException('non-nullable first_name cannot be null');
        }
        $this->container['first_name'] = $first_name;

        return $this;
    }

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

    /**
     * Sets last_name
     *
     * @param string|null $last_name The last name of the contact person.
     *
     * @return self
     */
    public function setLastName($last_name)
    {
        if (is_null($last_name)) {
            throw new \InvalidArgumentException('non-nullable last_name cannot be null');
        }
        $this->container['last_name'] = $last_name;

        return $this;
    }

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

    /**
     * Sets mobile
     *
     * @param string|null $mobile Mobile contact number of the supplier.
     *
     * @return self
     */
    public function setMobile($mobile)
    {
        if (is_null($mobile)) {
            throw new \InvalidArgumentException('non-nullable mobile cannot be null');
        }
        $this->container['mobile'] = $mobile;

        return $this;
    }

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

    /**
     * Sets phone
     *
     * @param string|null $phone Physical contact number of the supplier.
     *
     * @return self
     */
    public function setPhone($phone)
    {
        if (is_null($phone)) {
            throw new \InvalidArgumentException('non-nullable phone cannot be null');
        }
        $this->container['phone'] = $phone;

        return $this;
    }

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

    /**
     * Sets physical_address1
     *
     * @param string|null $physical_address1 Line 1 address of the supplier's physical address.
     *
     * @return self
     */
    public function setPhysicalAddress1($physical_address1)
    {
        if (is_null($physical_address1)) {
            throw new \InvalidArgumentException('non-nullable physical_address1 cannot be null');
        }
        $this->container['physical_address1'] = $physical_address1;

        return $this;
    }

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

    /**
     * Sets physical_address2
     *
     * @param string|null $physical_address2 Line 2 address of the supplier's physical address.
     *
     * @return self
     */
    public function setPhysicalAddress2($physical_address2)
    {
        if (is_null($physical_address2)) {
            throw new \InvalidArgumentException('non-nullable physical_address2 cannot be null');
        }
        $this->container['physical_address2'] = $physical_address2;

        return $this;
    }

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

    /**
     * Sets physical_city
     *
     * @param string|null $physical_city City of the supplier's physical address.
     *
     * @return self
     */
    public function setPhysicalCity($physical_city)
    {
        if (is_null($physical_city)) {
            throw new \InvalidArgumentException('non-nullable physical_city cannot be null');
        }
        $this->container['physical_city'] = $physical_city;

        return $this;
    }

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

    /**
     * Sets physical_country_id
     *
     * @param string|null $physical_country_id ID of the country of the supplier's physical address.
     *
     * @return self
     */
    public function setPhysicalCountryId($physical_country_id)
    {
        if (is_null($physical_country_id)) {
            throw new \InvalidArgumentException('non-nullable physical_country_id cannot be null');
        }
        $this->container['physical_country_id'] = $physical_country_id;

        return $this;
    }

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

    /**
     * Sets physical_postcode
     *
     * @param string|null $physical_postcode Postcode of the supplier's physical address.
     *
     * @return self
     */
    public function setPhysicalPostcode($physical_postcode)
    {
        if (is_null($physical_postcode)) {
            throw new \InvalidArgumentException('non-nullable physical_postcode cannot be null');
        }
        $this->container['physical_postcode'] = $physical_postcode;

        return $this;
    }

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

    /**
     * Sets physical_state
     *
     * @param string|null $physical_state State of the supplier's physical address.
     *
     * @return self
     */
    public function setPhysicalState($physical_state)
    {
        if (is_null($physical_state)) {
            throw new \InvalidArgumentException('non-nullable physical_state cannot be null');
        }
        $this->container['physical_state'] = $physical_state;

        return $this;
    }

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

    /**
     * Sets physical_suburb
     *
     * @param string|null $physical_suburb Suburb of the supplier's physical address.
     *
     * @return self
     */
    public function setPhysicalSuburb($physical_suburb)
    {
        if (is_null($physical_suburb)) {
            throw new \InvalidArgumentException('non-nullable physical_suburb cannot be null');
        }
        $this->container['physical_suburb'] = $physical_suburb;

        return $this;
    }

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

    /**
     * Sets postal_address1
     *
     * @param string|null $postal_address1 Line 1 address of the supplier's postal address.
     *
     * @return self
     */
    public function setPostalAddress1($postal_address1)
    {
        if (is_null($postal_address1)) {
            throw new \InvalidArgumentException('non-nullable postal_address1 cannot be null');
        }
        $this->container['postal_address1'] = $postal_address1;

        return $this;
    }

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

    /**
     * Sets postal_address2
     *
     * @param string|null $postal_address2 Line 2 address of the supplier's postal address.
     *
     * @return self
     */
    public function setPostalAddress2($postal_address2)
    {
        if (is_null($postal_address2)) {
            throw new \InvalidArgumentException('non-nullable postal_address2 cannot be null');
        }
        $this->container['postal_address2'] = $postal_address2;

        return $this;
    }

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

    /**
     * Sets postal_city
     *
     * @param string|null $postal_city City of the supplier's postal address.
     *
     * @return self
     */
    public function setPostalCity($postal_city)
    {
        if (is_null($postal_city)) {
            throw new \InvalidArgumentException('non-nullable postal_city cannot be null');
        }
        $this->container['postal_city'] = $postal_city;

        return $this;
    }

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

    /**
     * Sets postal_country_id
     *
     * @param string|null $postal_country_id ID of the country of the supplier's postal address.
     *
     * @return self
     */
    public function setPostalCountryId($postal_country_id)
    {
        if (is_null($postal_country_id)) {
            throw new \InvalidArgumentException('non-nullable postal_country_id cannot be null');
        }
        $this->container['postal_country_id'] = $postal_country_id;

        return $this;
    }

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

    /**
     * Sets postal_postcode
     *
     * @param string|null $postal_postcode Postcode of the supplier's postal address.
     *
     * @return self
     */
    public function setPostalPostcode($postal_postcode)
    {
        if (is_null($postal_postcode)) {
            throw new \InvalidArgumentException('non-nullable postal_postcode cannot be null');
        }
        $this->container['postal_postcode'] = $postal_postcode;

        return $this;
    }

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

    /**
     * Sets postal_state
     *
     * @param string|null $postal_state State of the supplier's postal address.
     *
     * @return self
     */
    public function setPostalState($postal_state)
    {
        if (is_null($postal_state)) {
            throw new \InvalidArgumentException('non-nullable postal_state cannot be null');
        }
        $this->container['postal_state'] = $postal_state;

        return $this;
    }

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

    /**
     * Sets postal_suburb
     *
     * @param string|null $postal_suburb Suburb of the supplier's postal address.
     *
     * @return self
     */
    public function setPostalSuburb($postal_suburb)
    {
        if (is_null($postal_suburb)) {
            throw new \InvalidArgumentException('non-nullable postal_suburb cannot be null');
        }
        $this->container['postal_suburb'] = $postal_suburb;

        return $this;
    }

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

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

        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));
    }
}


