<?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 ExternalDeviceReference
 * A pair of a device reference and an external identifier (e.g. from a CMDB) * @property null|DeviceReferenceInputInputType $deviceRef = null The device reference
 * @property null|string $externalId = null An id from the external tool (e.g. CMDB) associated with this device
 */
final class ExternalDeviceReferenceInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'deviceRef') {
            return new DeviceReferenceInputInputType($value);
        }

        return $value;
    }
}