listRequests method
Implementation
Future<List<RequestEntry>> listRequests(PrivateKey withPrivateKey) async {
final resp = await getAuth('/request', withPrivateKey);
if (resp.statusCode == HttpStatus.ok) {
return ListRequestsResponse.fromJson(json.decode(resp.body)).requests;
}
return Future.error(HttpResponseError(resp.statusCode, resp.body));
}