*/ public function toArray(Request $request): array { return [ 'id' => $this->id, 'dns_manager_domain_id' => $this->dns_manager_domain_id, 'name' => $this->name, 'type' => $this->type, 'type_valid' => $this->type_valid, 'priority' => $this->priority, 'weight' => $this->weight, 'port' => $this->port, 'service_name' => $this->service_name, 'protocol' => $this->protocol, 'value' => $this->value, 'ttl' => isset($this->ttl) ? (int) $this->ttl : null, 'plesk_id' => $this->plesk_id, 'created_at' => optional($this->created_at)->toISOString(), 'updated_at' => optional($this->updated_at)->toISOString(), ]; } }