deleteRequest method

  1. @protected
Future<void> deleteRequest()

The actual deleting process is done from the API when it is deleted.

By overriding, it is possible to use plugins, etc. in addition to simply deleting to the URL.

Implementation

@protected
Future<void> deleteRequest() async {
  final res = await Api.delete(
    deleteEndpoint,
    headers: deleteHeaders,
    body: toRequest(filterOnSave(toMap(value))),
  );
  onCatchResponse(res);
}