getDeviceInformation method Null safety
This operation gets basic device information from the device.
Implementation
Future<GetDeviceInformationResponse> getDeviceInformation() async {
loggy.debug('getDeviceInformation');
final envelope = await transport.sendRequest(
uri,
transport
.securedEnvelope(soap.DeviceManagementRequest.deviceInformation()));
if (envelope.body.hasFault) {
throw Exception(envelope.body.fault.toString());
}
return GetDeviceInformationResponse.fromJson(envelope.body.response!);
}