<?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 ComputerAccountDeviceAssignmentInput
 * A computer account object within Microsoft's Active Directory associated with a device * @property null|ComputerAccountInputInputType $computerAccount = null The associated computer account object
 * @property null|string $name = null The computer account name.
 * @property null|DeviceInputInputType $device = null The associated device.
 * @property null|DirectoryInputInputType $directory = null The associated directory object.
 * @property null|HostnameInputInputType $hostname = null The associated hostname object.
 */
final class ComputerAccountDeviceAssignmentInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'computerAccount') {
            return new ComputerAccountInputInputType($value);
        }

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

        if ($name === 'directory') {
            return new DirectoryInputInputType($value);
        }

        if ($name === 'hostname') {
            return new HostnameInputInputType($value);
        }

        return $value;
    }
}