Skip to content

Commit

Permalink
Merge pull request #80 from ctrl-shift/main
Browse files Browse the repository at this point in the history
Fix receiving null arguments
  • Loading branch information
jamiewest authored Jan 25, 2022
2 parents a5d5499 + 5d16dba commit 8c96e88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/json_hub_protocol.dart
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,7 @@ extension InvocationMessageExtensions on InvocationMessage {
static InvocationMessage fromJson(Map<String, dynamic> json) {
return InvocationMessage(
target: json['target'] as String?,
arguments:
(json['arguments'] as List?)?.map((item) => item as Object).toList(),
arguments: json['arguments'] as List?,
headers: json['headers'] as Map<String, String>?,
invocationId: json['invocationId'] as String?,
streamIds: json['streamIds'] as List<String>?,
Expand Down

0 comments on commit 8c96e88

Please sign in to comment.