We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ed4607 commit cd67b3bCopy full SHA for cd67b3b
lib/services/connection/call_manager/base_call_manager.dart
@@ -108,8 +108,13 @@ abstract class BaseCallManager<T> {
108
required bool isSubscription,
109
bool acceptNullValue = false,
110
}) {
111
- final Map<String, dynamic> result = request.toJson()
112
- ..removeWhere((String key, dynamic value) => value == null);
+ final Map<String, dynamic> result;
+ if (acceptNullValue) {
113
+ result = request.toJson();
114
+ } else {
115
+ result = request.toJson()
116
+ ..removeWhere((String key, dynamic value) => value == null);
117
+ }
118
119
if (isSubscription) {
120
result.putIfAbsent('subscribe', () => 1);
0 commit comments