<?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 CloudFoundryOrganizationInput
 * A CloudFoundry organization object. * @property mixed $discoveryTime = null The last discovery timestamp. This is the timestamp of the current data.
 * @property null|string $name = null The CloudFoundry organization name
 * @property null|iterable|CloudFoundrySpaceInputInputType[] $spaces = null The list of CloudFoundry spaces within this organization.
 * @property null|string $uniqueId = null The unique id for this organization.
 */
final class CloudFoundryOrganizationInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'spaces') {
            return (function($value) {foreach($value as $v) yield ($v === null ? null : new CloudFoundrySpaceInputInputType($v)); })($value);
        }

        return $value;
    }
}