getNtp method Null safety
This operation gets the NTP settings from a device. If the device supports NTP, it shall be possible to get the NTP server settings through the getNtp command.
Implementation
Future<NtpInformation> getNtp() async {
loggy.debug('getNtp');
final envelope = await Soap.retrieveEnvelope(
uri, onvif.secureRequest(SoapRequest.ntp()));
if (envelope.body.ntpResponse == null) throw Exception();
return envelope.body.ntpResponse!.ntpInformation;
}