deregister method

Future<void> deregister (int uuid, String deviceId, { String pushType })

Implementation

Future<void> deregister(int uuid, String deviceId, {String pushType}) async {
  return ApiFactory.handleApiError(() async {
    final finalPushType = pushType ?? _detectPushType(platform);
    final data = {
      "uuid": uuid,
      "device_id": deviceId,
      "push_type": finalPushType,
    };
    await dio.post("/v1/push/deregister", data: data);
  });
}