<?php

namespace App\Http\Resources\Email;

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

class EmailSenderResource extends JsonResource
{
    public function toArray(Request $request): array
    {
        return [
            'key' => $this->resource['key'] ?? null,
            'name' => $this->resource['name'] ?? null,
            'email' => $this->resource['email'] ?? null,
            'label' => $this->resource['label'] ?? null,
        ];
    }
}
