getInvite method

Future<Invite> getInvite(
  1. String inviteCode, {
  2. int? withCounts,
})

Implementation

Future<Invite> getInvite(String inviteCode, {int? withCounts}) {
  var endpoint = '/invites/$inviteCode';
  return _http.request(
    endpoint,
    converter: Invite.fromJson,
    query: {
      ...insertNotNull('with_counts', withCounts),
    },
  );
}