partyPromoteUser method

Future partyPromoteUser(
  1. String userId,
  2. String partyId
)

Implementation

Future<dynamic> partyPromoteUser(String userId, String partyId) async {
  var response = await send(
    method: "POST",
    url:
        "${Endpoints().fortniteParty}/parties/$partyId/members/$userId/promote",
    body: {},
  );

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

    return response;
  } else {
    return response;
  }
}