public function map($resource, array $data): ResourceClass
    {
        if (!isset($data['sys']['contentType'])) {
            $data['sys']['contentType'] = $this->contentType;
        }

        /** @var ResourceClass $deletedEntry */
        $deletedEntry = $this->hydrator->hydrate($resource ?: ResourceClass::class, [
            'sys' => $this->createSystemProperties(SystemProperties::class, $data),
        ]);

        return $deletedEntry;
    }
public function map($resource, array $data): ResourceClass
    {
        if (!isset($data['sys']['contentType'])) {
            $data['sys']['contentType'] = $this->contentType;
        }

        /** @var ResourceClass $deletedEntry */
        $deletedEntry = $this->hydrator->hydrate($resource ?: ResourceClass::class, [
            'sys' => $this->createSystemProperties(SystemProperties::class, $data),
        ]);

        return $deletedEntry;
    }
{@inheritdoc}