rejectById method

Future<T> rejectById(
  1. num id
)

Rejects an entity based on its ID.

Parameters:

  • id: The ID of the entity to reject.

Returns:

  • A Future that resolves to the rejected entity of type T.

Implementation

Future<T> rejectById(num id) async {
  return dio.post(
    "/reject",
    data: {
      "id": id,
    },
  ).then(
    (response) => response.body<T>(),
  );
}