<?php

namespace App\Http\Resources\Reports\ReportCards;

use Illuminate\Http\Resources\Json\JsonResource;

class ReportCardStudentMetaResource extends JsonResource
{
    public function toArray($request): array
    {
        return [
            'id' => (int) ($this['id'] ?? 0),
            'firstname' => (string) ($this['firstname'] ?? ''),
            'lastname' => (string) ($this['lastname'] ?? ''),
            'class_section_name' => (string) ($this['class_section_name'] ?? ''),
        ];
    }
}
