ChannelInvitationPreferenceSetRequest constructor

ChannelInvitationPreferenceSetRequest(
  1. bool autoAccept, {
  2. String? userId,
})

Implementation

ChannelInvitationPreferenceSetRequest(bool autoAccept, {String? userId})
    : super(userId: userId) {
  url = 'users/${userId ?? state.userId}/channel_invitation_preference';
  body = {'auto_accept': autoAccept};
}