api<T> method
Implementation
@override
Future<ApiResult<T>> api<T>(IReturn<T> request,
{Map<String, dynamic>? args, String? method}) async {
try {
var result =
await fetch<T>(method ?? resolveHttpMethod(request), request, args);
return ApiResult<T>(response: result);
} on Exception catch (e) {
return new ApiResult<T>(error: getResponseStatus(e));
}
}