<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class ListItem extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function toArray($request)
    {
        return [
            "idListItem"        => $this->idListItem,
            "title"             => $this->titleListItem,
            "comment"           => is_null($this->commentListItem)?'':$this->commentListItem,
            "emptyMesagge"      => $this->emptyMesaggeListItem,
            "columns"           => $this->columns,
            "font"              => $this->fontListItem,
        ];

    }
}
