b5b452230c
Previously, the result of calling `toJson()` could still include some classes (like `List` and `EitherX<>` unions). This didn't cause issues because `jsonEncode()` would handle those types anyway (calling `toJson()` recursively), however changes to support the log replay are looking inside the returned Map and should see consistent types. Change-Id: Ie52a7251ee10579de8ce605584feb82abc15eb8d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/472900 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Jake Macdonald <jakemac@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>