<?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 SupportEntitlementInput
 * The support entitlements (Ex. warranty) of the device * @property null|string $description = null description about the support entitlement
 * @property null|DeviceInputInputType $device = null id of the device which this support entitlement belongs to
 * @property mixed $endDate = null end date of the support entitlement
 * @property null|int $expiresInDays = null Number of days remaining to expire in days
 * @property null|string $partNumber = null part number of the device
 * @property mixed $startDate = null starting date of the support entitlement
 * @property null|SupportEntitlementStateEnum $supportEntitlementState = null state of the support entitlement (Ex. Expired, Valid)
 */
final class SupportEntitlementInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'device') {
            return new DeviceInputInputType($value);
        }

        if ($name === 'supportEntitlementState') {
            return new SupportEntitlementStateEnum($value);
        }

        return $value;
    }
}