getSystemSupportInformation method

Future<SystemInformation> getSystemSupportInformation()

This operation gets arbitrary device diagnostics information from the device.

Access Class: READ_SYSTEM_SECRET

Implementation

Future<SystemInformation> getSystemSupportInformation() async {
  loggy.debug('getSystemSupportInformation');

  final responseEnvelope = await transport.securedRequest(
      uri,
      soap.Body(
        request: DeviceManagementRequest.getSystemSupportInformation(),
      ));

  if (responseEnvelope.body.hasFault) {
    throw Exception(responseEnvelope.body.fault.toString());
  }

  return GetSystemSupportInformationResponse.fromJson(
          responseEnvelope.body.response!)
      .supportInformation;
}