src/Formio/Service/FormService.php
public function get(?string $id, Parameters $parameters = null): Form
    {
        if (null !== $id) {
            $resource = str_replace('{id}', $id, static::RESOURCE_OBJECT);
        } else {
            $resource = str_replace('{path}', $parameters->getPath(), static::RESOURCE_OBJECT_BY_PATH);
        }

        $options = [
            'headers' => [
                'Accept' => 'application/json'
            ]
        ];

        $object = $this->execute('GET', $resource, $options);
        /** @var \Ds\Component\Formio\Model\Form $model */
        $model = static::toModel($object);

        return $model;
    }
public function get(?string $id, Parameters $parameters = null): Form
    {
        if (null !== $id) {
            $resource = str_replace('{id}', $id, static::RESOURCE_OBJECT);
        } else {
            $resource = str_replace('{path}', $parameters->getPath(), static::RESOURCE_OBJECT_BY_PATH);
        }

        $options = [
            'headers' => [
                'Accept' => 'application/json'
            ]
        ];

        $object = $this->execute('GET', $resource, $options);
        /** @var \Ds\Component\Formio\Model\Form $model */
        $model = static::toModel($object);

        return $model;
    }
Get form

@param string $id
@param \Ds\Component\Formio\Query\FormParameters $parameters
@return \Ds\Component\Formio\Model\Form