getEvents method

Future getEvents(
  1. String accountId,
  2. String region,
  3. String platform
)

Implementation

Future<dynamic> getEvents(
    String accountId, String region, String platform) async {
  var response = await client.send(
    method: "GET",
    url:
        "${Endpoints().eventsService}/events/Fortnite/download/$accountId?region=$region&platform=$platform&teamAccountIds=$accountId",
    body: {},
  );

  if (response.toString() != "null" && response.toString() != "") {
    // Map<String, dynamic> json = jsonDecode(response);

    return response;
  } else {
    return response;
  }
}