setConversationConsentState method
Set consent state for a conversation by topic
Implementation
@override
Future<bool> setConversationConsentState(String topic, String state) async {
try {
final params = <String, dynamic>{
'topic': topic,
'state': state,
}.jsify() as JSObject;
await _promiseToFuture(
_clientManager.setConversationConsentState(params),
);
return true;
} catch (e) {
throw Exception('Failed to set conversation consent state: $e');
}
}