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