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