asMap method
Implementation
Map asMap() {
final keys =
(context["Object"] as JSObject).callMethod("keys", [this]) as JSArray;
final length = keys.length();
final result = {};
for (var i = 0; i < length; i++) {
final key = keys[i];
result[key] = this[key];
}
return result;
}