<?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 SoftwareMeteringTemplateConfigurationInput
 * A software metering template configuration * @property mixed $expirationDate = null The expiration date
 * @property mixed $lastProvisionDate = null The last provision date
 * @property mixed $pollingIntervalInMillis The polling interval in millis
 * @property null|iterable|SoftwareMeteringTemplateInputInputType[] $templates = null The software metering templates
 */
final class SoftwareMeteringTemplateConfigurationInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

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

        return $value;
    }
}