*/ public function toArray(Request $request): array { return [ 'id' => $this->id, 'name' => $this->name, 'type' => $this->type, '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, ]; } }