When running in a browser and receiving data from other JavaScript code I'm getting JSObject types. So, I can do something like (obj.dartify() as Map).cast<String, dynamic>() and pass the dartified object to JsonObjectReader().
But when it gets to any nested maps, the tryObject() check for is-Map instance is failing on a value, which has runtime type like JsLinkedHashMap.
Not sure if there is a better way for this. But it would be neat if JsonObjectReader() could take the raw JS values.
When running in a browser and receiving data from other JavaScript code I'm getting JSObject types. So, I can do something like
(obj.dartify() as Map).cast<String, dynamic>()and pass the dartified object toJsonObjectReader().But when it gets to any nested maps, the
tryObject()check foris-Mapinstance is failing on a value, which has runtime type likeJsLinkedHashMap.Not sure if there is a better way for this. But it would be neat if
JsonObjectReader()could take the raw JS values.