ed36a5a057
This avoids a second Map access for retrieving every value in every message from a plugin. This also extracts out the `if (json is Map)` case outside of a block, by short-circuiting when `json` is not a Map. Change-Id: I962511d44ea797a0105901510a9182b5811b0230 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/487080 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Samuel Rawlins <srawlins@google.com>