public function getSerializer(): Serializer
    {
        if ($this->serializer) {
            return $this->serializer;
        }

        return $this->serializer = new Serializer([new ModelNormalizer()], [new JsonEncoder()]);
    }