getToDeviceEventQueue method
Implementation
@override
Future<List<QueuedToDeviceEvent>> getToDeviceEventQueue() async =>
await Future.wait(_toDeviceQueueBox.keys.map((i) async {
final raw = await _toDeviceQueueBox.get(i);
raw['id'] = i;
return QueuedToDeviceEvent.fromJson(convertToJson(raw));
}).toList());