src/Mapper/Locale.php
public function map($resource, array $data): ResourceClass
    {
        /** @var ResourceClass $locale */
        $locale = $this->hydrator->hydrate($resource ?: ResourceClass::class, [
            'sys' => $this->createSystemProperties(SystemProperties::class, $data),
            'code' => $data['code'],
            'name' => $data['name'],
            'default' => $data['default'],
            'fallbackCode' => $data['fallbackCode'],
        ]);

        return $locale;
    }
public function map($resource, array $data): ResourceClass
    {
        /** @var ResourceClass $locale */
        $locale = $this->hydrator->hydrate($resource ?: ResourceClass::class, [
            'sys' => $this->createSystemProperties(SystemProperties::class, $data),
            'code' => $data['code'],
            'name' => $data['name'],
            'default' => $data['default'],
            'fallbackCode' => $data['fallbackCode'],
        ]);

        return $locale;
    }
{@inheritdoc}