public function serialize(Lesson $lesson, array $options = [])
    {
        $firstChapter = $this->chapterRepository->getFirstChapter($lesson);

        $serialized = [
            'id' => $lesson->getUuid(),
            'title' => $lesson->getResourceNode()->getName(),
            'firstChapterId' => $firstChapter ? $firstChapter->getUuid() : null,
            'firstChapterSlug' => $firstChapter ? $firstChapter->getSlug() : null,
        ];

        return $serialized;
    }