c15aeb3da7
This code seemed a little out of date and non-idiomatic. I used a few modern language features to help it to better comply with our team styles. * Make declarations private if they can be. * Make declarations final if they can be. * Use factory constructors over static methods. * Do not use type annotations that would be inferred. * Use patterns for matching JSON data. * Use extension type when appropriate. Change-Id: Ib7ecbe51b6d8a94e56a51f84772952362c64049f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/508424 Commit-Queue: Samuel Rawlins <srawlins@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>