restoreDeployment method
Restore the deployment from a local cache.
Returns true
if successful.
Implementation
Future<bool> restoreDeployment() async => (studyDeploymentId != null)
? (deployment =
await Persistence().restoreDeployment(studyDeploymentId!)) !=
null
: false;