[ Hotfix ][ DWDS ] Fix issue where null was repeatedly sent to connected clients (#2679)

This is a regression from 1c29125 and was reported in flutter/flutter#174437
diff --git a/dwds/CHANGELOG.md b/dwds/CHANGELOG.md
index 7d6a5d4..00b9bc8 100644
--- a/dwds/CHANGELOG.md
+++ b/dwds/CHANGELOG.md
@@ -1,3 +1,10 @@
+## 24.4.0+2
+
+### Bug Fixes:
+
+- Fix issue where `DebugService: Error serving requestsError: Unsupported operation: Cannot send Null`
+  would be spammed on the console.
+
 ## 24.4.0+1
 
 ### Bug Fixes:
diff --git a/dwds/lib/data/serializers.g.dart b/dwds/lib/data/serializers.g.dart
index 3f229a3..ab286b8 100644
--- a/dwds/lib/data/serializers.g.dart
+++ b/dwds/lib/data/serializers.g.dart
@@ -7,7 +7,7 @@
 // **************************************************************************
 
 Serializers _$serializers =
-    (new Serializers().toBuilder()
+    (Serializers().toBuilder()
           ..add(BatchedDebugEvents.serializer)
           ..add(BatchedEvents.serializer)
           ..add(BuildResult.serializer)
@@ -29,11 +29,11 @@
           ..add(RunRequest.serializer)
           ..addBuilderFactory(
             const FullType(BuiltList, const [const FullType(DebugEvent)]),
-            () => new ListBuilder<DebugEvent>(),
+            () => ListBuilder<DebugEvent>(),
           )
           ..addBuilderFactory(
             const FullType(BuiltList, const [const FullType(ExtensionEvent)]),
-            () => new ListBuilder<ExtensionEvent>(),
+            () => ListBuilder<ExtensionEvent>(),
           ))
         .build();
 
diff --git a/dwds/lib/src/injected/client.js b/dwds/lib/src/injected/client.js
index 4728250..2e649b4 100644
--- a/dwds/lib/src/injected/client.js
+++ b/dwds/lib/src/injected/client.js
@@ -1,4 +1,4 @@
-// Generated by dart2js (, csp, intern-composite-values), the Dart to JavaScript compiler version: 3.10.0-118.0.dev.
+// Generated by dart2js (, csp, intern-composite-values), the Dart to JavaScript compiler version: 3.9.0.
 // The code supports the following hooks:
 // dartPrint(message):
 //    if this function is defined it is called instead of the Dart [print]
@@ -22129,6 +22129,7 @@
     },
     deserialize$3$specifiedType(serializers, serialized, specifiedType) {
       var t1, t2, value, $$v, _$result,
+        _s11_ = "BuildResult",
         result = new A.BuildResultBuilder(),
         iterator = J.get$iterator$ax(type$.Iterable_nullable_Object._as(serialized));
       for (t1 = type$.BuildStatus; iterator.moveNext$0();) {
@@ -22152,7 +22153,13 @@
         }
       }
       _$result = result._build_result$_$v;
-      return result._build_result$_$v = _$result == null ? new A._$BuildResult(A.BuiltValueNullFieldError_checkNotNull(result.get$_build_result$_$this()._status, "BuildResult", "status", t1)) : _$result;
+      if (_$result == null) {
+        t2 = A.BuiltValueNullFieldError_checkNotNull(result.get$_build_result$_$this()._status, _s11_, "status", t1);
+        _$result = new A._$BuildResult(t2);
+        A.BuiltValueNullFieldError_checkNotNull(t2, _s11_, "status", t1);
+      }
+      A.ArgumentError_checkNotNull(_$result, "other", type$.BuildResult);
+      return result._build_result$_$v = _$result;
     },
     deserialize$2(serializers, serialized) {
       return this.deserialize$3$specifiedType(serializers, serialized, B.FullType_null_List_empty_false);
@@ -22283,13 +22290,22 @@
       return _this;
     },
     _connect_request$_build$0() {
-      var t1, _this = this,
+      var t1, t2, t3, t4, _this = this,
         _s14_ = "ConnectRequest",
+        _s10_ = "instanceId",
+        _s14_0 = "entrypointPath",
         _$result = _this._connect_request$_$v;
       if (_$result == null) {
         t1 = type$.String;
-        _$result = new A._$ConnectRequest(A.BuiltValueNullFieldError_checkNotNull(_this.get$_connect_request$_$this()._connect_request$_appId, _s14_, "appId", t1), A.BuiltValueNullFieldError_checkNotNull(_this.get$_connect_request$_$this()._instanceId, _s14_, "instanceId", t1), A.BuiltValueNullFieldError_checkNotNull(_this.get$_connect_request$_$this()._entrypointPath, _s14_, "entrypointPath", t1));
+        t2 = A.BuiltValueNullFieldError_checkNotNull(_this.get$_connect_request$_$this()._connect_request$_appId, _s14_, "appId", t1);
+        t3 = A.BuiltValueNullFieldError_checkNotNull(_this.get$_connect_request$_$this()._instanceId, _s14_, _s10_, t1);
+        t4 = A.BuiltValueNullFieldError_checkNotNull(_this.get$_connect_request$_$this()._entrypointPath, _s14_, _s14_0, t1);
+        _$result = new A._$ConnectRequest(t2, t3, t4);
+        A.BuiltValueNullFieldError_checkNotNull(t2, _s14_, "appId", t1);
+        A.BuiltValueNullFieldError_checkNotNull(t3, _s14_, _s10_, t1);
+        A.BuiltValueNullFieldError_checkNotNull(t4, _s14_, _s14_0, t1);
       }
+      A.ArgumentError_checkNotNull(_$result, "other", type$.ConnectRequest);
       return _this._connect_request$_$v = _$result;
     }
   };
@@ -22454,13 +22470,23 @@
       return _this;
     },
     _debug_event$_build$0() {
-      var t1, _this = this,
+      var t1, t2, t3, t4, t5, _this = this,
         _s10_ = "DebugEvent",
+        _s9_ = "eventData",
+        _s9_0 = "timestamp",
         _$result = _this._debug_event$_$v;
       if (_$result == null) {
         t1 = type$.String;
-        _$result = new A._$DebugEvent(A.BuiltValueNullFieldError_checkNotNull(_this.get$_debug_event$_$this()._debug_event$_kind, _s10_, "kind", t1), A.BuiltValueNullFieldError_checkNotNull(_this.get$_debug_event$_$this()._eventData, _s10_, "eventData", t1), A.BuiltValueNullFieldError_checkNotNull(_this.get$_debug_event$_$this()._timestamp, _s10_, "timestamp", type$.int));
+        t2 = A.BuiltValueNullFieldError_checkNotNull(_this.get$_debug_event$_$this()._debug_event$_kind, _s10_, "kind", t1);
+        t3 = A.BuiltValueNullFieldError_checkNotNull(_this.get$_debug_event$_$this()._eventData, _s10_, _s9_, t1);
+        t4 = type$.int;
+        t5 = A.BuiltValueNullFieldError_checkNotNull(_this.get$_debug_event$_$this()._timestamp, _s10_, _s9_0, t4);
+        _$result = new A._$DebugEvent(t2, t3, t5);
+        A.BuiltValueNullFieldError_checkNotNull(t2, _s10_, "kind", t1);
+        A.BuiltValueNullFieldError_checkNotNull(t3, _s10_, _s9_, t1);
+        A.BuiltValueNullFieldError_checkNotNull(t5, _s10_, _s9_0, t4);
       }
+      A.ArgumentError_checkNotNull(_$result, "other", type$.DebugEvent);
       return _this._debug_event$_$v = _$result;
     }
   };
@@ -22505,10 +22531,17 @@
       return _this;
     },
     _debug_event$_build$0() {
-      var _$failedField, e, _$result0, exception, t1, _this = this, _$result = null;
+      var _$failedField, e, _$result0, t1, exception, t2, _this = this,
+        _s18_ = "BatchedDebugEvents",
+        _$result = null;
       try {
         _$result0 = _this._debug_event$_$v;
-        _$result = _$result0 == null ? new A._$BatchedDebugEvents(_this.get$events().build$0()) : _$result0;
+        if (_$result0 == null) {
+          t1 = _this.get$events().build$0();
+          _$result0 = new A._$BatchedDebugEvents(t1);
+          A.BuiltValueNullFieldError_checkNotNull(t1, _s18_, "events", type$.BuiltList_DebugEvent);
+        }
+        _$result = _$result0;
       } catch (exception) {
         _$failedField = A._Cell$named("_$failedField");
         try {
@@ -22516,12 +22549,15 @@
           _this.get$events().build$0();
         } catch (exception) {
           e = A.unwrapException(exception);
-          t1 = A.BuiltValueNestedFieldError$("BatchedDebugEvents", _$failedField.readLocal$0(), J.toString$0$(e));
+          t1 = A.BuiltValueNestedFieldError$(_s18_, _$failedField.readLocal$0(), J.toString$0$(e));
           throw A.wrapException(t1);
         }
         throw exception;
       }
-      _this._debug_event$_$v = type$.BatchedDebugEvents._as(_$result);
+      t1 = type$.BatchedDebugEvents;
+      t2 = t1._as(_$result);
+      A.ArgumentError_checkNotNull(t2, "other", t1);
+      _this._debug_event$_$v = t2;
       return _$result;
     },
     set$_events(_events) {
@@ -22741,7 +22777,10 @@
     _build$0() {
       var _this = this,
         _$result = _this._$v;
-      return _this._$v = _$result == null ? new A._$DebugInfo(_this.get$_$this()._appEntrypointPath, _this.get$_$this()._appId, _this.get$_$this()._appInstanceId, _this.get$_$this()._appOrigin, _this.get$_$this()._appUrl, _this.get$_$this()._authUrl, _this.get$_$this()._dwdsVersion, _this.get$_$this()._extensionUrl, _this.get$_$this()._isInternalBuild, _this.get$_$this()._isFlutterApp, _this.get$_$this()._workspaceName, _this.get$_$this()._tabUrl, _this.get$_$this()._tabId) : _$result;
+      if (_$result == null)
+        _$result = new A._$DebugInfo(_this.get$_$this()._appEntrypointPath, _this.get$_$this()._appId, _this.get$_$this()._appInstanceId, _this.get$_$this()._appOrigin, _this.get$_$this()._appUrl, _this.get$_$this()._authUrl, _this.get$_$this()._dwdsVersion, _this.get$_$this()._extensionUrl, _this.get$_$this()._isInternalBuild, _this.get$_$this()._isFlutterApp, _this.get$_$this()._workspaceName, _this.get$_$this()._tabUrl, _this.get$_$this()._tabId);
+      A.ArgumentError_checkNotNull(_$result, "other", type$.DebugInfo);
+      return _this._$v = _$result;
     }
   };
   A.DevToolsRequest.prototype = {};
@@ -22847,7 +22886,8 @@
       return this.serialize$3$specifiedType(serializers, object, B.FullType_null_List_empty_false);
     },
     deserialize$3$specifiedType(serializers, serialized, specifiedType) {
-      var t1, value, _$result,
+      var t1, value, _$result, t2, t3,
+        _s15_ = "promptExtension",
         _s16_ = "DevToolsResponse",
         result = new A.DevToolsResponseBuilder(),
         iterator = J.get$iterator$ax(type$.Iterable_nullable_Object._as(serialized));
@@ -22879,8 +22919,13 @@
       _$result = result._devtools_request$_$v;
       if (_$result == null) {
         t1 = type$.bool;
-        _$result = new A._$DevToolsResponse(A.BuiltValueNullFieldError_checkNotNull(result.get$_devtools_request$_$this()._success, _s16_, "success", t1), A.BuiltValueNullFieldError_checkNotNull(result.get$_devtools_request$_$this()._promptExtension, _s16_, "promptExtension", t1), result.get$_devtools_request$_$this()._error);
+        t2 = A.BuiltValueNullFieldError_checkNotNull(result.get$_devtools_request$_$this()._success, _s16_, "success", t1);
+        t3 = A.BuiltValueNullFieldError_checkNotNull(result.get$_devtools_request$_$this()._promptExtension, _s16_, _s15_, t1);
+        _$result = new A._$DevToolsResponse(t2, t3, result.get$_devtools_request$_$this()._error);
+        A.BuiltValueNullFieldError_checkNotNull(t2, _s16_, "success", t1);
+        A.BuiltValueNullFieldError_checkNotNull(t3, _s16_, _s15_, t1);
       }
+      A.ArgumentError_checkNotNull(_$result, "other", type$.DevToolsResponse);
       return result._devtools_request$_$v = _$result;
     },
     deserialize$2(serializers, serialized) {
@@ -22937,13 +22982,19 @@
       return _this;
     },
     _devtools_request$_build$0() {
-      var t1, _this = this,
+      var t1, t2, t3, _this = this,
         _s15_ = "DevToolsRequest",
+        _s10_ = "instanceId",
         _$result = _this._devtools_request$_$v;
       if (_$result == null) {
         t1 = type$.String;
-        _$result = new A._$DevToolsRequest(A.BuiltValueNullFieldError_checkNotNull(_this.get$_devtools_request$_$this()._devtools_request$_appId, _s15_, "appId", t1), A.BuiltValueNullFieldError_checkNotNull(_this.get$_devtools_request$_$this()._devtools_request$_instanceId, _s15_, "instanceId", t1), _this.get$_devtools_request$_$this()._contextId, _this.get$_devtools_request$_$this()._devtools_request$_tabUrl, _this.get$_devtools_request$_$this()._uriOnly, _this.get$_devtools_request$_$this()._devtools_request$_client);
+        t2 = A.BuiltValueNullFieldError_checkNotNull(_this.get$_devtools_request$_$this()._devtools_request$_appId, _s15_, "appId", t1);
+        t3 = A.BuiltValueNullFieldError_checkNotNull(_this.get$_devtools_request$_$this()._devtools_request$_instanceId, _s15_, _s10_, t1);
+        _$result = new A._$DevToolsRequest(t2, t3, _this.get$_devtools_request$_$this()._contextId, _this.get$_devtools_request$_$this()._devtools_request$_tabUrl, _this.get$_devtools_request$_$this()._uriOnly, _this.get$_devtools_request$_$this()._devtools_request$_client);
+        A.BuiltValueNullFieldError_checkNotNull(t2, _s15_, "appId", t1);
+        A.BuiltValueNullFieldError_checkNotNull(t3, _s15_, _s10_, t1);
       }
+      A.ArgumentError_checkNotNull(_$result, "other", type$.DevToolsRequest);
       return _this._devtools_request$_$v = _$result;
     }
   };
@@ -22994,7 +23045,8 @@
       return this.serialize$3$specifiedType(serializers, object, B.FullType_null_List_empty_false);
     },
     deserialize$3$specifiedType(serializers, serialized, specifiedType) {
-      var t1, value, $$v, _$result,
+      var t1, value, $$v, _$result, t2, t3,
+        _s10_ = "stackTrace",
         _s13_ = "ErrorResponse",
         result = new A.ErrorResponseBuilder(),
         iterator = J.get$iterator$ax(type$.Iterable_nullable_Object._as(serialized));
@@ -23034,8 +23086,13 @@
       _$result = result._error_response$_$v;
       if (_$result == null) {
         t1 = type$.String;
-        _$result = new A._$ErrorResponse(A.BuiltValueNullFieldError_checkNotNull(result.get$_error_response$_$this()._error_response$_error, _s13_, "error", t1), A.BuiltValueNullFieldError_checkNotNull(result.get$_error_response$_$this()._error_response$_stackTrace, _s13_, "stackTrace", t1));
+        t2 = A.BuiltValueNullFieldError_checkNotNull(result.get$_error_response$_$this()._error_response$_error, _s13_, "error", t1);
+        t3 = A.BuiltValueNullFieldError_checkNotNull(result.get$_error_response$_$this()._error_response$_stackTrace, _s13_, _s10_, t1);
+        _$result = new A._$ErrorResponse(t2, t3);
+        A.BuiltValueNullFieldError_checkNotNull(t2, _s13_, "error", t1);
+        A.BuiltValueNullFieldError_checkNotNull(t3, _s13_, _s10_, t1);
       }
+      A.ArgumentError_checkNotNull(_$result, "other", type$.ErrorResponse);
       return result._error_response$_$v = _$result;
     },
     deserialize$2(serializers, serialized) {
@@ -23101,7 +23158,7 @@
       return this.serialize$3$specifiedType(serializers, object, B.FullType_null_List_empty_false);
     },
     deserialize$3$specifiedType(serializers, serialized, specifiedType) {
-      var t1, value, _$result,
+      var t1, value, _$result, t2, t3, t4,
         _s16_ = "ExtensionRequest",
         result = new A.ExtensionRequestBuilder(),
         iterator = J.get$iterator$ax(type$.Iterable_nullable_Object._as(serialized));
@@ -23131,7 +23188,17 @@
         }
       }
       _$result = result._extension_request$_$v;
-      return result._extension_request$_$v = _$result == null ? new A._$ExtensionRequest(A.BuiltValueNullFieldError_checkNotNull(result.get$_extension_request$_$this()._id, _s16_, "id", type$.int), A.BuiltValueNullFieldError_checkNotNull(result.get$_extension_request$_$this()._command, _s16_, "command", type$.String), result.get$_extension_request$_$this()._commandParams) : _$result;
+      if (_$result == null) {
+        t1 = type$.int;
+        t2 = A.BuiltValueNullFieldError_checkNotNull(result.get$_extension_request$_$this()._id, _s16_, "id", t1);
+        t3 = type$.String;
+        t4 = A.BuiltValueNullFieldError_checkNotNull(result.get$_extension_request$_$this()._command, _s16_, "command", t3);
+        _$result = new A._$ExtensionRequest(t2, t4, result.get$_extension_request$_$this()._commandParams);
+        A.BuiltValueNullFieldError_checkNotNull(t2, _s16_, "id", t1);
+        A.BuiltValueNullFieldError_checkNotNull(t4, _s16_, "command", t3);
+      }
+      A.ArgumentError_checkNotNull(_$result, "other", type$.ExtensionRequest);
+      return result._extension_request$_$v = _$result;
     },
     deserialize$2(serializers, serialized) {
       return this.deserialize$3$specifiedType(serializers, serialized, B.FullType_null_List_empty_false);
@@ -23161,7 +23228,7 @@
       return this.serialize$3$specifiedType(serializers, object, B.FullType_null_List_empty_false);
     },
     deserialize$3$specifiedType(serializers, serialized, specifiedType) {
-      var t1, value, _$result,
+      var t1, value, _$result, t2, t3, t4, t5, t6,
         _s17_ = "ExtensionResponse",
         result = new A.ExtensionResponseBuilder(),
         iterator = J.get$iterator$ax(type$.Iterable_nullable_Object._as(serialized));
@@ -23197,7 +23264,20 @@
         }
       }
       _$result = result._extension_request$_$v;
-      return result._extension_request$_$v = _$result == null ? new A._$ExtensionResponse(A.BuiltValueNullFieldError_checkNotNull(result.get$_extension_request$_$this()._id, _s17_, "id", type$.int), A.BuiltValueNullFieldError_checkNotNull(result.get$_extension_request$_$this()._extension_request$_success, _s17_, "success", type$.bool), A.BuiltValueNullFieldError_checkNotNull(result.get$_extension_request$_$this()._extension_request$_result, _s17_, "result", type$.String), result.get$_extension_request$_$this()._extension_request$_error) : _$result;
+      if (_$result == null) {
+        t1 = type$.int;
+        t2 = A.BuiltValueNullFieldError_checkNotNull(result.get$_extension_request$_$this()._id, _s17_, "id", t1);
+        t3 = type$.bool;
+        t4 = A.BuiltValueNullFieldError_checkNotNull(result.get$_extension_request$_$this()._extension_request$_success, _s17_, "success", t3);
+        t5 = type$.String;
+        t6 = A.BuiltValueNullFieldError_checkNotNull(result.get$_extension_request$_$this()._extension_request$_result, _s17_, "result", t5);
+        _$result = new A._$ExtensionResponse(t2, t4, t6, result.get$_extension_request$_$this()._extension_request$_error);
+        A.BuiltValueNullFieldError_checkNotNull(t2, _s17_, "id", t1);
+        A.BuiltValueNullFieldError_checkNotNull(t4, _s17_, "success", t3);
+        A.BuiltValueNullFieldError_checkNotNull(t6, _s17_, "result", t5);
+      }
+      A.ArgumentError_checkNotNull(_$result, "other", type$.ExtensionResponse);
+      return result._extension_request$_$v = _$result;
     },
     deserialize$2(serializers, serialized) {
       return this.deserialize$3$specifiedType(serializers, serialized, B.FullType_null_List_empty_false);
@@ -23220,7 +23300,7 @@
       return this.serialize$3$specifiedType(serializers, object, B.FullType_null_List_empty_false);
     },
     deserialize$3$specifiedType(serializers, serialized, specifiedType) {
-      var t1, value, $$v, _$result,
+      var t1, value, $$v, _$result, t2, t3,
         _s14_ = "ExtensionEvent",
         result = new A.ExtensionEventBuilder(),
         iterator = J.get$iterator$ax(type$.Iterable_nullable_Object._as(serialized));
@@ -23260,8 +23340,13 @@
       _$result = result._extension_request$_$v;
       if (_$result == null) {
         t1 = type$.String;
-        _$result = new A._$ExtensionEvent(A.BuiltValueNullFieldError_checkNotNull(result.get$_extension_request$_$this()._params, _s14_, "params", t1), A.BuiltValueNullFieldError_checkNotNull(result.get$_extension_request$_$this()._extension_request$_method, _s14_, "method", t1));
+        t2 = A.BuiltValueNullFieldError_checkNotNull(result.get$_extension_request$_$this()._params, _s14_, "params", t1);
+        t3 = A.BuiltValueNullFieldError_checkNotNull(result.get$_extension_request$_$this()._extension_request$_method, _s14_, "method", t1);
+        _$result = new A._$ExtensionEvent(t2, t3);
+        A.BuiltValueNullFieldError_checkNotNull(t2, _s14_, "params", t1);
+        A.BuiltValueNullFieldError_checkNotNull(t3, _s14_, "method", t1);
       }
+      A.ArgumentError_checkNotNull(_$result, "other", type$.ExtensionEvent);
       return result._extension_request$_$v = _$result;
     },
     deserialize$2(serializers, serialized) {
@@ -23497,10 +23582,17 @@
       return t1;
     },
     _extension_request$_build$0() {
-      var _$failedField, e, _$result0, exception, t1, _this = this, _$result = null;
+      var _$failedField, e, _$result0, t1, exception, t2, _this = this,
+        _s13_ = "BatchedEvents",
+        _$result = null;
       try {
         _$result0 = _this._extension_request$_$v;
-        _$result = _$result0 == null ? new A._$BatchedEvents(_this.get$events().build$0()) : _$result0;
+        if (_$result0 == null) {
+          t1 = _this.get$events().build$0();
+          _$result0 = new A._$BatchedEvents(t1);
+          A.BuiltValueNullFieldError_checkNotNull(t1, _s13_, "events", type$.BuiltList_ExtensionEvent);
+        }
+        _$result = _$result0;
       } catch (exception) {
         _$failedField = A._Cell$named("_$failedField");
         try {
@@ -23508,12 +23600,15 @@
           _this.get$events().build$0();
         } catch (exception) {
           e = A.unwrapException(exception);
-          t1 = A.BuiltValueNestedFieldError$("BatchedEvents", _$failedField.readLocal$0(), J.toString$0$(e));
+          t1 = A.BuiltValueNestedFieldError$(_s13_, _$failedField.readLocal$0(), J.toString$0$(e));
           throw A.wrapException(t1);
         }
         throw exception;
       }
-      _this._extension_request$_$v = type$.BatchedEvents._as(_$result);
+      t1 = type$.BatchedEvents;
+      t2 = t1._as(_$result);
+      A.ArgumentError_checkNotNull(t2, "other", t1);
+      _this._extension_request$_$v = t2;
       return _$result;
     },
     set$_extension_request$_events(_events) {
@@ -23529,7 +23624,8 @@
       return this.serialize$3$specifiedType(serializers, object, B.FullType_null_List_empty_false);
     },
     deserialize$3$specifiedType(serializers, serialized, specifiedType) {
-      var t1, value, $$v, _$result,
+      var t1, value, $$v, _$result, t2,
+        _s16_ = "HotReloadRequest",
         result = new A.HotReloadRequestBuilder(),
         iterator = J.get$iterator$ax(type$.Iterable_nullable_Object._as(serialized));
       for (; iterator.moveNext$0();) {
@@ -23553,7 +23649,14 @@
         }
       }
       _$result = result._hot_reload_request$_$v;
-      return result._hot_reload_request$_$v = _$result == null ? new A._$HotReloadRequest(A.BuiltValueNullFieldError_checkNotNull(result.get$_hot_reload_request$_$this()._hot_reload_request$_id, "HotReloadRequest", "id", type$.String)) : _$result;
+      if (_$result == null) {
+        t1 = type$.String;
+        t2 = A.BuiltValueNullFieldError_checkNotNull(result.get$_hot_reload_request$_$this()._hot_reload_request$_id, _s16_, "id", t1);
+        _$result = new A._$HotReloadRequest(t2);
+        A.BuiltValueNullFieldError_checkNotNull(t2, _s16_, "id", t1);
+      }
+      A.ArgumentError_checkNotNull(_$result, "other", type$.HotReloadRequest);
+      return result._hot_reload_request$_$v = _$result;
     },
     deserialize$2(serializers, serialized) {
       return this.deserialize$3$specifiedType(serializers, serialized, B.FullType_null_List_empty_false);
@@ -23701,10 +23804,20 @@
       return _this;
     },
     _hot_reload_response$_build$0() {
-      var _this = this,
+      var t1, t2, t3, t4, _this = this,
         _s17_ = "HotReloadResponse",
         _$result = _this._hot_reload_response$_$v;
-      return _this._hot_reload_response$_$v = _$result == null ? new A._$HotReloadResponse(A.BuiltValueNullFieldError_checkNotNull(_this.get$_hot_reload_response$_$this()._hot_reload_response$_id, _s17_, "id", type$.String), A.BuiltValueNullFieldError_checkNotNull(_this.get$_hot_reload_response$_$this()._hot_reload_response$_success, _s17_, "success", type$.bool), _this.get$_hot_reload_response$_$this()._errorMessage) : _$result;
+      if (_$result == null) {
+        t1 = type$.String;
+        t2 = A.BuiltValueNullFieldError_checkNotNull(_this.get$_hot_reload_response$_$this()._hot_reload_response$_id, _s17_, "id", t1);
+        t3 = type$.bool;
+        t4 = A.BuiltValueNullFieldError_checkNotNull(_this.get$_hot_reload_response$_$this()._hot_reload_response$_success, _s17_, "success", t3);
+        _$result = new A._$HotReloadResponse(t2, t4, _this.get$_hot_reload_response$_$this()._errorMessage);
+        A.BuiltValueNullFieldError_checkNotNull(t2, _s17_, "id", t1);
+        A.BuiltValueNullFieldError_checkNotNull(t4, _s17_, "success", t3);
+      }
+      A.ArgumentError_checkNotNull(_$result, "other", type$.HotReloadResponse);
+      return _this._hot_reload_response$_$v = _$result;
     }
   };
   A.IsolateExit.prototype = {};
@@ -23775,7 +23888,10 @@
   A.IsolateExitBuilder.prototype = {
     _isolate_events$_build$0() {
       var _$result = this._isolate_events$_$v;
-      return this._isolate_events$_$v = _$result == null ? new A._$IsolateExit() : _$result;
+      if (_$result == null)
+        _$result = new A._$IsolateExit();
+      A.ArgumentError_checkNotNull(_$result, "other", type$.IsolateExit);
+      return this._isolate_events$_$v = _$result;
     }
   };
   A._$IsolateStart.prototype = {
@@ -23796,7 +23912,10 @@
   A.IsolateStartBuilder.prototype = {
     _isolate_events$_build$0() {
       var _$result = this._isolate_events$_$v;
-      return this._isolate_events$_$v = _$result == null ? new A._$IsolateStart() : _$result;
+      if (_$result == null)
+        _$result = new A._$IsolateStart();
+      A.ArgumentError_checkNotNull(_$result, "other", type$.IsolateStart);
+      return this._isolate_events$_$v = _$result;
     }
   };
   A.RegisterEvent.prototype = {};
@@ -23890,10 +24009,22 @@
       return _this;
     },
     _register_event$_build$0() {
-      var _this = this,
+      var t1, t2, t3, t4, _this = this,
         _s13_ = "RegisterEvent",
+        _s9_ = "eventData",
+        _s9_0 = "timestamp",
         _$result = _this._register_event$_$v;
-      return _this._register_event$_$v = _$result == null ? new A._$RegisterEvent(A.BuiltValueNullFieldError_checkNotNull(_this.get$_register_event$_$this()._register_event$_eventData, _s13_, "eventData", type$.String), A.BuiltValueNullFieldError_checkNotNull(_this.get$_register_event$_$this()._register_event$_timestamp, _s13_, "timestamp", type$.int)) : _$result;
+      if (_$result == null) {
+        t1 = type$.String;
+        t2 = A.BuiltValueNullFieldError_checkNotNull(_this.get$_register_event$_$this()._register_event$_eventData, _s13_, _s9_, t1);
+        t3 = type$.int;
+        t4 = A.BuiltValueNullFieldError_checkNotNull(_this.get$_register_event$_$this()._register_event$_timestamp, _s13_, _s9_0, t3);
+        _$result = new A._$RegisterEvent(t2, t4);
+        A.BuiltValueNullFieldError_checkNotNull(t2, _s13_, _s9_, t1);
+        A.BuiltValueNullFieldError_checkNotNull(t4, _s13_, _s9_0, t3);
+      }
+      A.ArgumentError_checkNotNull(_$result, "other", type$.RegisterEvent);
+      return _this._register_event$_$v = _$result;
     }
   };
   A.RunRequest.prototype = {};
@@ -23906,8 +24037,11 @@
       return this.serialize$3$specifiedType(serializers, object, B.FullType_null_List_empty_false);
     },
     deserialize$3$specifiedType(serializers, serialized, specifiedType) {
+      var _$result;
       type$.Iterable_nullable_Object._as(serialized);
-      return new A._$RunRequest();
+      _$result = new A._$RunRequest();
+      A.ArgumentError_checkNotNull(_$result, "other", type$.RunRequest);
+      return _$result;
     },
     deserialize$2(serializers, serialized) {
       return this.deserialize$3$specifiedType(serializers, serialized, B.FullType_null_List_empty_false);
@@ -28616,6 +28750,8 @@
       BuildResult: findType("BuildResult"),
       BuildStatus: findType("BuildStatus"),
       BuiltListMultimap_dynamic_dynamic: findType("BuiltListMultimap<@,@>"),
+      BuiltList_DebugEvent: findType("BuiltList<DebugEvent>"),
+      BuiltList_ExtensionEvent: findType("BuiltList<ExtensionEvent>"),
       BuiltList_dynamic: findType("BuiltList<@>"),
       BuiltList_nullable_Object: findType("BuiltList<Object?>"),
       BuiltMap_dynamic_dynamic: findType("BuiltMap<@,@>"),
diff --git a/dwds/lib/src/services/debug_service.dart b/dwds/lib/src/services/debug_service.dart
index c38ef89..18cd90d 100644
--- a/dwds/lib/src/services/debug_service.dart
+++ b/dwds/lib/src/services/debug_service.dart
@@ -48,7 +48,7 @@
   final clientId = _clientId++;
   final responseController = StreamController<Map<String, Object?>>();
   responseController.stream
-      .asyncMap((response) async {
+      .asyncMap<String>((response) async {
         // This error indicates a successful invocation to _yieldControlToDDS.
         // We don't have a good way to access the list of connected clients
         // while also being able to determine which client invoked the RPC
@@ -72,7 +72,7 @@
           response['result'] = Success().toJson();
         }
         if (onResponse != null) onResponse(response);
-        channel.sink.add(jsonEncode(response));
+        return jsonEncode(response);
       })
       .listen(channel.sink.add, onError: channel.sink.addError);
   final inputStream = channel.stream.map((value) {
diff --git a/dwds/lib/src/version.dart b/dwds/lib/src/version.dart
index be5fcd5..64f97d1 100644
--- a/dwds/lib/src/version.dart
+++ b/dwds/lib/src/version.dart
@@ -1,2 +1,2 @@
 // Generated code. Do not modify.
-const packageVersion = '24.4.0+1';
+const packageVersion = '24.4.0+2';
diff --git a/dwds/pubspec.yaml b/dwds/pubspec.yaml
index e98e0f8..bc410ca 100644
--- a/dwds/pubspec.yaml
+++ b/dwds/pubspec.yaml
@@ -1,6 +1,6 @@
 name: dwds
 # Every time this changes you need to run `dart run build_runner build`.
-version: 24.4.0+1
+version: 24.4.0+2
 
 description: >-
   A service that proxies between the Chrome debug protocol and the Dart VM