apiVoid method
Future<ApiResult<EmptyResponse> >
apiVoid(
- IReturnVoid request, {
- Map<
String, dynamic> ? args, - String? method,
override
Implementation
@override
Future<ApiResult<EmptyResponse>> apiVoid(IReturnVoid request,
{Map<String, dynamic>? args, String? method}) async {
try {
var result = await this.fetch<EmptyResponse>(
method ?? resolveHttpMethod(request), request, args);
return ApiResult<EmptyResponse>(response: result);
} on Exception catch (e) {
return ApiResult<EmptyResponse>(error: getResponseStatus(e));
}
}