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