id = $data['id'] ?? null; $model->createdAt = $data['created_at'] ?? null; $model->downloadUrl = ValidationStatusDownloadUrl::create($data['download_url']); $model->id = $data['id'] ?? null; $model->quantity = $data['quantity'] ?? 0; $model->recordsProcessed = $data['records_processed'] ?? null; $model->status = $data['status'] ?? null; $model->summary = ValidationStatusSummary::create($data['summary'] ?? []); return $model; } private function __construct() { } public function getCreatedAt(): ?string { return $this->createdAt; } public function getDownloadUrl(): ValidationStatusDownloadUrl { return $this->downloadUrl; } public function getId(): ?string { return $this->id; } public function getQuantity(): ?int { return $this->quantity; } public function getRecordsProcessed(): ?int { return $this->recordsProcessed; } public function getStatus(): ?string { return $this->status; } public function getSummary(): ValidationStatusSummary { return $this->summary; } }