I'm writing a custom dart to js interop around chrome.storage.local.set using new js package and dart 2 SDK.
A Map in Dart is not the same thing as an object in JavaScript, but forcing developers to write abstract classes every-time they want to use a public facing API is not the right thing either.
So, I'm looking for a way to convert dart Map to a JavaScript object that won't require writing abstract class.
Using dart:js it was easy to convert a dart Map to JS object but with new js package I have not seen any example that dynamically converts dart Map to js object.