<?php

namespace App\Http\Resources\Reports\Stickers;

use Illuminate\Http\Resources\Json\JsonResource;

class StickerPresetResource extends JsonResource
{
    public function toArray($request): array
    {
        return [
            'value' => (string) ($this['value'] ?? ''),
            'label' => (string) ($this['label'] ?? ''),
            'title' => (string) ($this['title'] ?? ''),
            'text' => (string) ($this['text'] ?? ''),
            'per_page' => $this['per_page'] ?? null,
        ];
    }
}
