<?php

declare (strict_types=1);
namespace idoit\Module\JDisc\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 CloudFoundryServiceInstanceInput
 * A CloudFoundry service instance object. * @property null|string $description = null The CloudFoundry service instance description.
 * @property mixed $discoveryTime = null The last discovery timestamp. This is the timestamp of the current data.
 * @property null|string $name = null The CloudFoundry service instance name
 * @property null|string $plan = null The CloudFoundry service instance plan.
 * @property null|CloudFoundrySpaceInputInputType $space = null The space that this space belongs to
 * @property null|iterable|string[] $tags = null The tag list for this CloudFoundry service instance.
 * @property null|CloudFoundryServiceInstanceTypeEnum $type = null The CloudFoundry service instance type.
 * @property null|string $uniqueId = null The CloudFoundry service instance unique id.
 * @property null|string $version = null The CloudFoundry service instance version.
 */
final class CloudFoundryServiceInstanceInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'space') {
            return new CloudFoundrySpaceInputInputType($value);
        }

        if ($name === 'type') {
            return new CloudFoundryServiceInstanceTypeEnum($value);
        }

        return $value;
    }
}