From 75e2505eb3da560634dcc57f4557802fdbe359aa Mon Sep 17 00:00:00 2001 From: juan Date: Sat, 22 Feb 2025 00:15:59 -0500 Subject: [PATCH] fixed typing issue for the attachmentResponse --- lib/structs.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/structs.dart b/lib/structs.dart index b55beb9..c7e9da4 100644 --- a/lib/structs.dart +++ b/lib/structs.dart @@ -143,6 +143,6 @@ class AttachmentResponse { AttachmentResponse({required this.name, required this.data}); factory AttachmentResponse.fromJson(Map json) { - return AttachmentResponse(name: json["name"], data: json["data"],); + return AttachmentResponse(name: json["name"], data: Uint8List.fromList(List.from(json["data"]))); } }