<?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 JDiagramEdgeDataInput
 * A diagram edge data type * @property null|DiagramEntityIdEnum $diagramEntityId = null The source DiagramEntityId
 * @property mixed $entityId = null The source EntityId
 * @property null|BuiltInReportEnum $infoReportId = null The builtInReport to show info related to the edge
 * @property null|DiagramEntityIdEnum $relationDiagramEntityId = null The target DiagramEntityId
 * @property mixed $relationEntityId = null The target EntityId
 */
final class JDiagramEdgeDataInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'diagramEntityId') {
            return new DiagramEntityIdEnum($value);
        }

        if ($name === 'infoReportId') {
            return new BuiltInReportEnum($value);
        }

        if ($name === 'relationDiagramEntityId') {
            return new DiagramEntityIdEnum($value);
        }

        return $value;
    }
}