$this->id, 'uuid' => $this->uuid, 'fullname' => $this->fullname, 'email' => $this->email, 'phone' => $this->phone, 'company' => $this->company, 'address' => $this->address, 'address_2' => $this->address_2, 'city' => $this->city, 'state' => $this->state, 'postcode' => $this->postcode === null ? null : (string) $this->postcode, 'country' => $this->country, 'note' => $this->note, 'status' => (int) $this->status, 'total' => (int) $this->total, 'email_marketing' => (bool) $this->email_marketing, 'receive_deposit' => (bool) $this->receive_deposit, 'created_at' => $this->created_at, 'is_starred' => (bool) $this->is_starred, 'tags' => $this->whenLoaded('tags'), ]; } }