<?php
namespace Modules\Client\Transformers\Dashboard;

use Illuminate\Http\Resources\Json\JsonResource;

class MemberAlarmCenterResources extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
     */
    public function toArray($request)
    {
        return [
            'id' => $this->id,
            'personId' => $this->person_id,
            'memberId' => $this->member_id,
            'fullName' => $this->full_name,
            'service' => $this->service_code,
            'start_date' => $this->members_effective_date,
            'end_date' => $this->members_expire_date,
            'status' => $this->active,
        ];
    }
}
