<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class EntidadDatos extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'idE'           => strval($this->idE),
            'key'           => $this->key,
            'valueED'       => $this->valueED,
            'typeED'        => $this->typeED,
            'nameED'        => $this->nameED,
            'typeSuperED'   => $this->typeSuperED,
            'nameSuperED'   => $this->nameSuperED,
        ];
    }
}
