<?php

namespace Modules\Speaker\Transformers;

use Illuminate\Http\Resources\Json\JsonResource;

class SpeakerResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'hash' => $this->hash_id,
            'name' => $this->name,
            'designation' => $this->designation,
            'description' => $this->description,
            'avatar_path' => $this->avatar_path,
        ];
    }
}
