<?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 JavaRiskInput
 * A Java license risk entry. * @property null|ApplicationInputInputType $application = null The application this java risk applies to.
 * @property null|DeviceInputInputType $device = null The device that this java risk applies to.
 * @property null|ProcessInputInputType $process = null The process this java risk applies to.
 * @property null|JavaRiskTypeEnum $riskType = null The risk type for this Java risk.
 */
final class JavaRiskInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'application') {
            return new ApplicationInputInputType($value);
        }

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

        if ($name === 'process') {
            return new ProcessInputInputType($value);
        }

        if ($name === 'riskType') {
            return new JavaRiskTypeEnum($value);
        }

        return $value;
    }
}