delete method

  1. @override
FutureOr<Response> delete(
  1. SideEffectModel entity
)
inherited

The delete method deletes an existing entity.

Implementation

@override
FutureOr<Response> delete(D entity) async {
  return executeFuture(
    future: () async {
      return await dio.post(
        createPath,
        data: {
          EntityPlurals.getPluralForEntityName(entityName): [entity.toMap()],
          "apiOperation": "DELETE",
        },
      );
    },
  );
}