deleteImageByHash<DataT extends Data> method
- String hash, {
- DataT? data,
deletes an image specified by its hash and returns the response
Implementation
RequestAndParser<http.BaseResponse, String?>
deleteImageByHash<DataT extends Data>(
String hash, {
DataT? data,
}) {
debugPrint(
'remote.deleteImageByHash hash=$hash url=${_baseurl + _deleteImageByHash_r} hasData=${data != null}',
);
final rd = RequestData(
_deleteImageByHash_r,
json: {
'hash': hash,
if (data != null) 'data': data.toJson(),
},
);
parser(http.BaseResponse? res) => res?.forceRes()?.body;
return RequestAndParser(rd: rd, parser: parser);
}