<?php

namespace App\Http\Resources\Settings;

use Illuminate\Http\Resources\Json\JsonResource;

class ConfigurationResource extends JsonResource
{
    public function toArray($request): array
    {
        return [
            'id' => (int) ($this['id'] ?? 0),
            'config_key' => (string) ($this['config_key'] ?? ''),
            'config_value' => (string) ($this['config_value'] ?? ''),
        ];
    }
}
