getProfiles method
Any endpoint can ask for the existing media profiles of a device using the getProfiles command. Pre-configured or dynamically configured profiles can be retrieved using this command. This command lists all configured profiles in a device. The client does not need to know the media profile in order to use the command.
Implementation
Future<List<Profile>> getProfiles() async {
final envelope = await Soap.retrieveEnvlope(
uri, onvif.secureRequest(SoapRequest.profiles()));
if (envelope.body.profilesResponse == null) throw Exception();
return envelope.body.profilesResponse!.profiles;
}