The payload array for API transmission */ public function toPayload(): array { return [ 'email' => $this->email, 'telefonmobil' => $this->mobile, 'telefonprivat' => $this->phone, 'newsletter' => $this->newsletter ? 'True' : 'False', ]; } }