GroupChannelInvitationAcceptRequest constructor

GroupChannelInvitationAcceptRequest({
  1. required String channelUrl,
  2. String? accessCode,
  3. String? userId,
})

Implementation

GroupChannelInvitationAcceptRequest({
  required String channelUrl,
  String? accessCode,
  String? userId,
}) : super(userId: userId) {
  url = 'group_channels/$channelUrl/accept';
  body = {
    if (accessCode != null) 'access_code': accessCode,
  };
}