ChannelOperatorsRemoveRequest constructor
ChannelOperatorsRemoveRequest({
- required ChannelType channelType,
- required String channelUrl,
- List<
String> userIds = const [], - bool removeAll = false,
Implementation
ChannelOperatorsRemoveRequest({
required ChannelType channelType,
required String channelUrl,
List<String> userIds = const [],
bool removeAll = false,
}) : super() {
url = '${channelType.urlString}/$channelUrl/operators';
body = {
if (removeAll) 'delete_all': true,
if (!removeAll) 'operator_ids': userIds,
};
}