bulkDelete method

FutureOr<Response> bulkDelete(
  1. List<EntityModel> entities
)
inherited

Implementation

FutureOr<Response> bulkDelete(List<EntityModel> entities) async {
  return executeFuture(
    future: () async {
      return await dio.post(
        bulkDeletePath,
        options: Options(headers: {
          "content-type": 'application/json',
        }),
        queryParameters: {
          "tenantId": DigitDataModelSingleton().tenantId,
        },
        data: {
          EntityPlurals.getPluralForEntityName(entityName): _getMap(entities),
          "apiOperation": "DELETE",
        },
      );
    },
  );
}