$this->deviceId, "identifier" => $this->identifier, "initial_device_display_name" => $this->initialDeviceDisplayName, "refresh_token" => $this->refreshToken, "type" => $this->type, ]; $request += match ($this->type) { LoginType::PASSWORD => [ "password" => $this->password, ], LoginType::TOKEN => [ "token" => $this->token, ], default => [], }; return array_filter($request, "is_null"); } }