getDehydratedDeviceEvents method

Future<DehydratedDeviceEvents> getDehydratedDeviceEvents(
  1. String deviceId, {
  2. String? from,
  3. int limit = 100,
})

fetch events sent to a dehydrated device. https://github.com/sdn-org/sdn-spec-proposals/pull/3814

Implementation

Future<DehydratedDeviceEvents> getDehydratedDeviceEvents(String deviceId,
    {String? from, int limit = 100}) async {
  final response = await request(
    RequestType.GET,
    '/client/unstable/org.sdn.msc3814.v1/dehydrated_device/$deviceId/events',
    query: {
      if (from != null) 'from': from,
      'limit': limit.toString(),
    },
  );
  return DehydratedDeviceEvents.fromJson(response);
}