<?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 LicenseInput
 * A software license. * @property null|string $comment = null A license comment
 * @property mixed $expirationDate = null A license's expiration date
 * @property null|string $productId = null The license product id
 * @property null|string $productKey = null The license product key
 * @property null|SoftwareLicenseStatusEnum $status = null The license type
 * @property null|LicenseTypeEnum $type = null The license type
 */
final class LicenseInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'status') {
            return new SoftwareLicenseStatusEnum($value);
        }

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

        return $value;
    }
}