<?php
namespace Modules\Weight\Entities;
namespace Modules\Weight\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class Resource extends JsonResource
{
    public function toArray($request)
    {
        $arr = [
            'id' => $this->id,
            'country_id' => $this->country_id,
            'price' => $this->price,
            'weight' => $this->weight,
            'free_delivery' => $this->free_delivery,
        ];

        return $arr;
    }
}
