deletePusher method

Future<void> deletePusher(
  1. PusherId pusher
)

Variant of postPusher operation that deletes pushers by setting kind: null.

https://sdn.org/docs/spec/client_server/r0.6.1#post-sdn-client-r0-pushers-set

Implementation

Future<void> deletePusher(PusherId pusher) async {
  final data = PusherData.fromJson(pusher.toJson()).toJson();
  data['kind'] = null;
  await request(
    RequestType.POST,
    '/client/v3/pushers/set',
    data: data,
  );
  return;
}