getRecordings method Null safety
GetRecordings shall return a description of all the recordings in the device. This description shall include a list of all the tracks for each recording.
Implementation
Future<List<GetRecordingsResponseItem>> getRecordings() async {
loggy.debug('getRecordings');
final envelope = await transport.sendRequest(
uri, transport.securedEnvelope(soap.RecordingsRequest.getRecordings()));
if (envelope.body.hasFault) {
throw Exception(envelope.body.fault.toString());
}
return GetRecordingsResponse.fromJson(envelope.body.response!)
.recordingItems;
}