$model->uuid, 'format' => $model->parsedFormat, 'text' => $model->text, 'size' => $model->size, 'color' => $model->color, 'bg_color' => $model->bg_color, 'margin' => $model->phone ]; } public function includeImage(QrCode $model): ?Item { return $model->image ? $this->item($model->image, new AssetTransformer()) : null; } public function includeDocument(QrCode $model): ?Item { return $model->document ? $this->item($model->document, new AssetTransformer()) : null; } }