GroupChannelLeaveRequest constructor

GroupChannelLeaveRequest({
  1. required String channelUrl,
  2. String? userId,
  3. bool? shouldRemoveOperatorStatus,
})

Implementation

GroupChannelLeaveRequest({
  required String channelUrl,
  String? userId,
  bool? shouldRemoveOperatorStatus,
}) : super(userId: userId) {
  url = 'group_channels/$channelUrl/leave';
  body = {
    'should_remove_operator_status': shouldRemoveOperatorStatus ?? false
  };
}