From 5d16dba01491a5f3eee048cb27e594b438667f3c Mon Sep 17 00:00:00 2001 From: Denys Han Date: Mon, 13 Dec 2021 16:59:59 +0200 Subject: [PATCH] Fix receiving null arguments --- lib/src/json_hub_protocol.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/json_hub_protocol.dart b/lib/src/json_hub_protocol.dart index 676aa94..1c74acf 100644 --- a/lib/src/json_hub_protocol.dart +++ b/lib/src/json_hub_protocol.dart @@ -181,8 +181,7 @@ extension InvocationMessageExtensions on InvocationMessage { static InvocationMessage fromJson(Map 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?, invocationId: json['invocationId'] as String?, streamIds: json['streamIds'] as List?,