acceptInvite method

Future<AcceptInviteResponse> acceptInvite (
  1. [Message message]
)

Accept invitation to the channel

Implementation

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