<?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 NetworkStorageLocationInput
 * The network storage location. * @property null|AccountInputInputType $account = null The network location account
 * @property mixed $creationTime = null The creation time of this entity.
 * @property null|string $id = null The internal id this entity. Note that the id might change when the entity gets deleted and recreated.
 * @property mixed $modificationTime = null The modification time of this entity.
 * @property null|string $name = null The network location name
 * @property null|string $path = null The network location path
 * @property null|NetworkLocationProtocolEnum $protocol = null The network location protocol
 * @property null|SSHAccountInputInputType $sshAccount = null The network location ssh public private key account
 * @property null|string $login = null The network location account login
 */
final class NetworkStorageLocationInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'account') {
            return new AccountInputInputType($value);
        }

        if ($name === 'protocol') {
            return new NetworkLocationProtocolEnum($value);
        }

        if ($name === 'sshAccount') {
            return new SSHAccountInputInputType($value);
        }

        return $value;
    }
}