getDeviceStatusByRoleName method
Get the status of a device with the given roleName in this study deployment.
Throws a StateError if no device has roleName.
Implementation
DeviceDeploymentStatus getDeviceStatusByRoleName(String roleName) =>
deviceStatusList.firstWhere((status) => status.device.roleName == roleName);