getDeviceInformation method
This operation gets basic device information from the device.
Access Class: READ_SYSTEM
Implementation
Future<GetDeviceInformationResponse> getDeviceInformation() async {
loggy.debug('getDeviceInformation');
final responseEnvelope = await transport.securedRequest(
uri,
soap.Body(
request: DeviceManagementRequest.getDeviceInformation(),
));
if (responseEnvelope.body.hasFault) {
throw Exception(responseEnvelope.body.fault.toString());
}
return GetDeviceInformationResponse.fromJson(
responseEnvelope.body.response!);
}