As on Android, WhatsApp allows keeping its backup data on Google Drive. Similarly, in the case of an iPhone device, the iCloud service is used to create a backup of its data. So use the iCloud server to backup data and restore it in the new iPhone device.