<?php

declare (strict_types=1);
namespace idoit\Module\JDisc\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 DeviceAccountAssignmentInput
 * The device account assignment is mapping table for device and accounts (1:n) * @property null|AccountTypeEnum $accountType = null The account type
 */
final class DeviceAccountAssignmentInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'accountType') {
            return new AccountTypeEnum($value);
        }

        return $value;
    }
}