deleteByEntity method

Future<T> deleteByEntity(
  1. T entity
)

Implementation

Future<T> deleteByEntity(T entity) async {
  return dio
      .post(
        '/delete',
        data: entity.toJSON(),
      )
      .then(
        (response) => response.body<T>(),
      );
}