getUsers method Null safety
This operation lists the registered users and corresponding credentials on a device. The device shall support retrieval of registered device users and their credentials for the user token through the getUsers (GetUsers) command.
Implementation
Future<List<User>> getUsers() async {
loggy.debug('getUsers');
final envelope = await transport.sendRequest(uri,
transport.securedEnvelope(soap.DeviceManagementRequest.getUsers()));
if (envelope.body.hasFault) {
throw Exception(envelope.body.fault.toString());
}
return GetUsersResponse.fromJson(envelope.body.response!).users;
}