loadRemoteAttachment method
Implementation
@override
Future<Map<String, dynamic>> loadRemoteAttachment(
Map<String, dynamic> params,
) async {
try {
final jsParams = params.jsify() as JSObject;
final result = await _promiseToFuture(
_clientManager.loadRemoteAttachment(jsParams),
);
return _jsObjectToMap(result);
} catch (e) {
throw Exception('Failed to load remote attachment: $e');
}
}