<?php

declare (strict_types=1);
namespace idoit\Module\SyneticsJdisc\Graphql\Schema\Model;

use Axtiva\FlexibleGraphql\Type\InputType;

/**
 * This code is @generated by axtiva/flexible-graphql-php do not edit it
 * PHP representation of graphql type TenantInput
 * The tenant account from cloud instance. * @property null|string $city = null The tenant's city.
 * @property null|CloudTypeEnum $cloudType = null The tenant's cloud type.
 * @property null|string $country = null The tenant's country.
 * @property null|string $id = null The internal id this entity. Note that the id might change when the entity gets deleted and recreated.
 * @property null|string $phoneNumber = null The tenant's phone number.
 * @property null|string $state = null The tenant's state.
 * @property null|string $street = null The tenant's street.
 * @property null|string $uuid = null The tenant's uuid.
 * @property null|string $zipCode = null The tenant's zipCode.
 */
final class TenantInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'cloudType') {
            return new CloudTypeEnum($value);
        }

        return $value;
    }
}