getSystemSupportInformation method Null safety

Future<SystemInformation> getSystemSupportInformation()

Implementation

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

  final envelope = await transport.sendRequest(
      uri,
      transport.securedEnvelope(
          soap.DeviceManagementRequest.getSystemSupportInformation()));

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

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