<?php

namespace App\Http\Resources\Api\Dashboard\Admin\Product;

use Illuminate\Http\Resources\Json\JsonResource;

class ProductMicroResource 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,
            'calcium'           => $this->calcium,
            'iron'              => $this->iron,
            'potassium'        => $this->potassium,
            'vitamin_d'        => $this->vitamin_d,
        ];
    }
}
