String-keyed maps are encoded as objects; maps with any non-string key are encoded as an array of [key, value] pairs so key types survive (Object.fromEntries would stringify them).
[key, value]
Object.fromEntries
String-keyed maps are encoded as objects; maps with any non-string key are encoded as an array of
[key, value]pairs so key types survive (Object.fromEntrieswould stringify them).