delete method
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",
},
);
},
);
}