getAsync<TResult> method
Runs a GET operation via HttpClient to retrieve information.
Implementation
Future<TerraRestfulResponse> getAsync<TResult>(String uri) async {
var response = await clientService.getAsync(uri);
if (response.statusCode != 200) {
throw Exception(
"Status Code: ${response.statusCode}, Reason: ${response.reasonPhrase}");
}
return await deserializeResponse(response);
}