getAfterProof method

Future<AfterProof> getAfterProof()

Implementation

Future<AfterProof> getAfterProof() async {
  final resp = await get('/afterProof');

  if (resp.statusCode == HttpStatus.ok) {
    return AfterProof.fromJson(json.decode(resp.body));
  }

  return Future.error(HttpResponseError(resp.statusCode, resp.body));
}