deleteImageByHash method

RequestAndParser<BaseResponse, String?> deleteImageByHash(
  1. String link,
  2. String hash
)

deletes an image specified by its hash and returns the response

Implementation

RequestAndParser<http.BaseResponse, String?> deleteImageByHash(
    String link, String hash) {
  final rd = RequestData(
    _deleteImageByHash_r,
    json: {
      'link': link,
      'hash': hash,
    },
  );

  parser(http.BaseResponse? res) => res?.forceRes()?.body;

  return RequestAndParser(rd: rd, parser: parser);
}