get method

Implementation

Future<TransactionRequestInfo> get() async {
  final response = await http.get(link);

  if (response.statusCode != 200) {
    throw HttpException(response.statusCode, response.body);
  }

  return TransactionRequestInfo.fromJson(
    json.decode(response.body) as Map<String, dynamic>,
  );
}