GroupChannelInviteRequest constructor

GroupChannelInviteRequest({
  1. required String channelUrl,
  2. required List<String> userIds,
  3. String? inviterId,
})

Implementation

GroupChannelInviteRequest({
  required String channelUrl,
  required List<String> userIds,
  String? inviterId,
}) : super() {
  url = 'group_channels/$channelUrl/invite';
  body = {
    'inviter_id': inviterId ?? state.userId,
    'user_ids': userIds,
  };
}