<?php

namespace App\Http\Resources\Home;

use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;

class CampaignByOutletResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @return array<string, mixed>
     */
    public function toArray(Request $request): array
    {
        return [
            'campaign_type' => $this->action_type,
            'action_ref_id' => $this->action_reference_id,
            'server_banner_url' => $this->server_banner_url
        ];
    }
}
