ChannelUserBanRequest constructor Null safety
- {required String targetId,
- required ChannelType channelType,
- required String channelUrl,
- String? description,
- int seconds = -1}
Implementation
ChannelUserBanRequest({
required String targetId,
required ChannelType channelType,
required String channelUrl,
String? description,
int seconds = -1,
}) : super() {
url = '${channelType.urlString}/$channelUrl/ban';
body = {
'user_id': targetId,
'seconds': seconds,
if (description != null) 'description': description,
};
}