getGeoLocation method
This operation lists all existing geo location configurations for the device.
Access Class: READ_SYSTEM
Implementation
Future<dynamic> getGeoLocation() async {
loggy.debug('getGeoLocation');
final responseEnvelope = await transport.request(
uri,
soap.Body(request: DeviceManagementRequest.getGeoLocation()),
);
if (responseEnvelope.body.hasFault) {
throw Exception(responseEnvelope.body.fault.toString());
}
return GetGeoLocationResponse.fromJson(
responseEnvelope.body.response!,
).location;
}