<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class Contact extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'id' => $this->id,
            'type' => $this->type,
            'reference_id' => $this->reference_id,
            'name' => $this->name,
            'designation' => $this->designation,
            'contact' => $this->contact,
            'email' => $this->email
        ];
    }
}
