rejectInvite method

Future<RejectInviteResponse> rejectInvite (
  1. [Message message]
)

Reject invitation to the channel

Implementation

Future<RejectInviteResponse> rejectInvite([Message message]) async {
  final res = await _client.post(_channelURL,
      data: {'accept_invite': false, 'message': message?.toJson()});
  return _client.decode(res.data, RejectInviteResponse.fromJson);
}