2fbb33e4d8
The DTD client requires that the `type` field is populated in DTD responses, but this code previously would omit it when the result was `null` (because it used `result?.runtimeType`). Change-Id: I5a6e0927e9c02f2abb690aefceca8f8b003cd43b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/394484 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Keerti Parthasarathy <keertip@google.com> Commit-Queue: Keerti Parthasarathy <keertip@google.com>