getGlobalAccount method

  1. @override
Future<Map> getGlobalAccount(
  1. String token,
  2. String globalAccountId
)
override

Implementation

@override
Future<Map> getGlobalAccount(String token, String globalAccountId) async {
  final baseUrl = await getBaseUrl;
  var url = Uri.parse("$baseUrl/api/v1/global_accounts/$globalAccountId");

  var response = await http.get(
    url,
    headers: {"Authorization": "Bearer $token"},
  );

  var data = jsonDecode(response.body);
  return data;
}