src/Mapper/ContentType.php
protected function mapField(array $data): ResourceContentTypeField
    {
        /** @var ResourceContentTypeField $field */
        $field = $this->hydrator->hydrate(ResourceContentTypeField::class, [
            'id' => $data['id'],
            'name' => $data['name'],
            'type' => $data['type'],
            'linkType' => $data['linkType'] ?? null,
            'itemsType' => isset($data['items']) && isset($data['items']['type']) ? $data['items']['type'] : null,
            'itemsLinkType' => isset($data['items']) && isset($data['items']['linkType']) ? $data['items']['linkType'] : null,
            'required' => $data['required'] ?? false,
            'localized' => $data['localized'] ?? false,
            'disabled' => $data['disabled'] ?? false,
        ]);

        return $field;
    }
protected function mapField(array $data): ResourceContentTypeField
    {
        /** @var ResourceContentTypeField $field */
        $field = $this->hydrator->hydrate(ResourceContentTypeField::class, [
            'id' => $data['id'],
            'name' => $data['name'],
            'type' => $data['type'],
            'linkType' => $data['linkType'] ?? null,
            'itemsType' => isset($data['items']) && isset($data['items']['type']) ? $data['items']['type'] : null,
            'itemsLinkType' => isset($data['items']) && isset($data['items']['linkType']) ? $data['items']['linkType'] : null,
            'required' => $data['required'] ?? false,
            'localized' => $data['localized'] ?? false,
            'disabled' => $data['disabled'] ?? false,
        ]);

        return $field;
    }
@param array $data

@return ResourceContentTypeField