<?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 JDiagramAggregationNodePropertiesInput
 * A diagram node layout description * @property null|string $aggregationId = null The aggregation id
 * @property null|float $initHeight = null The aggregation node initial height
 * @property null|float $initWidth = null The aggregation node initial width
 * @property null|float $initX = null The aggregation node initial X coordinate
 * @property null|float $initY = null The aggregation node initial Y coordinate
 * @property null|string $label = null The aggregation node label
 * @property null|iterable|string[] $nodeIds = null The aggregated nodes ids
 * @property null|DiagramRelationIdEnum $relationId = null The start node aggregated relation id if any
 * @property null|string $startNodeId = null The start node id if any
 */
final class JDiagramAggregationNodePropertiesInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'relationId') {
            return new DiagramRelationIdEnum($value);
        }

        return $value;
    }
}