*/ public function toArray(Request $request): array { return [ 'id' => $this->id, 'type' => $this->type->value, 'title' => $this->title, 'body' => $this->body, 'status' => $this->status->value, 'audience_scope' => $this->audience_scope->value, 'target_identifier' => $this->target_identifier, 'payload' => $this->payload, 'priority' => $this->priority, 'expires_at' => $this->expires_at?->toISOString(), 'created_at' => $this->created_at?->toISOString(), ]; } }