sendPartyIntention method

Future<PartyIntention> sendPartyIntention(
  1. String userId,
  2. String accountId
)

Implementation

Future<PartyIntention> sendPartyIntention(
    String userId, String accountId) async {
  var response = await send(
    method: "POST",
    url: "${Endpoints().fortniteParty}/members/$userId/intentions/$accountId",
    body: {
      "urn:epic:invite:platformdata_s": "",
    },
  );
  if (response.toString() != "null" && response.toString() != "") {
    // Map<String, dynamic> json = jsonDecode(response);
    return PartyIntention.fromJson(response);
  } else {
    return response;
  }
}