<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class MapInformationListResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param \Illuminate\Http\Request $request
     * @return array
     */

    public function toArray($request)
    {
        $out = [
            'id'                    => $this->id,
            'counterpartyType'      => $this->counterparty_type,
            'settlementType'        => $this->settlement_type,
            'relevantCommodity'     => $this->relevant_commodity,
            'color'                 => $this->color,
            'title'                 => $this->title,
            'counterpartyComment'   => $this->counterparty_comment,
            'comment'               => $this->comment,
        ];

        return $out;
    }
}
