public function serialize(LtiResource $ltiResource, array $options = [])
    {
        $serialized = [
            'id' => $ltiResource->getUuid(),
            'openInNewTab' => $ltiResource->getOpenInNewTab(),
            'ratio' => $ltiResource->getRatio(),
            'ltiApp' => $ltiResource->getLtiApp() ?
                $this->ltiAppSerializer->serialize($ltiResource->getLtiApp(), [Options::SERIALIZE_MINIMAL]) :
                null,
            'ltiData' => $this->serializeLtiData($ltiResource),
        ];

        return $serialized;
    }